Loving these videos, your explanations are excellent! User
Loving these videos, your explanations are excellent!
why c.customerid and not o.customerid? are they both interchangeable? xrwflmf
why c.customerid and not o.customerid? are they both interchangeable?
Can't you just use group by in the subquery? jayjayf
Can't you just use group by in the subquery?
Would below be the same? SELECT c.ContactName, c.OrderDate, (select Max(OrderDate) from orders o where o.CustomerID = c.CustomerID) sq from Customers c marcinx
Would below be the same? SELECT c.ContactName, c.OrderDate, (select Max(OrderDate) from orders o where o.CustomerID = c.CustomerID) sq from Customers c
Is there a reason not to do select ContactName, max(OrderDate) from customers c join orders o on c.CustomerID = o.CustomerID group by c.CustomerID ? cellobix
Is there a reason not to do select ContactName, max(OrderDate) from customers c join orders o on c.CustomerID = o.CustomerID group by c.CustomerID ?