Hi I have the following data set generated from database (of a SAP Business One system)
I generated this result by using the following query:
SELECT T1.[ItemCode], T0.[DocNum], T1.[Price], T0.[CardName]
FROM OINV T0 INNER JOIN INV1 T1 ON T0.[DocEntry] = T1.[DocEntry]
GROUP BY T1.[ItemCode], T1.[Price], T0.[CardName],T0.[DocNum]
I want to grab the latest price of each item for each customer. Can anyone please help me with that? Thanks in Advance