Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3273

Re: How i get last sales price of every item ???

$
0
0

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


Viewing all articles
Browse latest Browse all 3273

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>