G
Guest
I'm running a grouping query as follows;
SELECT Client, balance, SUM(payments), COUNT(payments), MAX(date_received)
FROM customers
GROUP BY Client, balance
I would like to include a column for a payment made on MAX(date_received).
Any suggestions?
thanks,
Pedro
SELECT Client, balance, SUM(payments), COUNT(payments), MAX(date_received)
FROM customers
GROUP BY Client, balance
I would like to include a column for a payment made on MAX(date_received).
Any suggestions?
thanks,
Pedro