0
0to60
Let's say I have an Invoices table setup and I want to find the most recent
invoice date per customer. I'd say:
SELECT Customer, Max(InvoiceDate)
FROM Invoices
GROUP BY Customer
Now what if I want to see the invoice number (or some other field of the
Invoices table) of those most recent invoices? In other words, the above
query tells me the date of the most recent invoice per customer. What if I
wanna know more information about that particular invoice? Do I have to do
a separate query?
invoice date per customer. I'd say:
SELECT Customer, Max(InvoiceDate)
FROM Invoices
GROUP BY Customer
Now what if I want to see the invoice number (or some other field of the
Invoices table) of those most recent invoices? In other words, the above
query tells me the date of the most recent invoice per customer. What if I
wanna know more information about that particular invoice? Do I have to do
a separate query?