Hi Expert!
I just want to ask a question about sql queries. I would like to make a query with the latest DocDate like this:
SELECT MAX(T0.[DocDate]) , T0.[CardCode] , T0.[DocNum]
FROM [dbo].[OINV] T0
WHERE T0.[CardCode] ='V1103'
GROUP BY T0.[CardCode], T0.[DocNum]
And the result that not so good. The queries generator appear all rows, not just the latest date. Can you help me?
Thanks,
Zoli