Hi,
Try this query:
SELECT T1.[ItemCode], T1.[Dscription], (select Top 1(T0.[Price]) From INV1 T0 where T0.itemcode = t1.itemcode) as 'Last Price'
FROM OINV T0 INNER JOIN INV1 T1 ON T0.[DocEntry] = T1.[DocEntry]
Thanks
Hi,
Try this query:
SELECT T1.[ItemCode], T1.[Dscription], (select Top 1(T0.[Price]) From INV1 T0 where T0.itemcode = t1.itemcode) as 'Last Price'
FROM OINV T0 INNER JOIN INV1 T1 ON T0.[DocEntry] = T1.[DocEntry]
Thanks