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

Re: SQL query for sales comparison

$
0
0

Hi,

 

Try this query:

 

SELECT T0.[DocDate], T0.[CardCode], T2.[SlpName], T1.[ItemCode], T1.[Dscription], sum(T1.[LineTotal]) as 'Line total' FROM OINV T0  INNER JOIN INV1 T1 ON T0.DocEntry = T1.DocEntry INNER JOIN OSLP T2 ON T0.SlpCode = T2.SlpCode WHERE T0.[DocDate] between [%0] and [%1] GROUP BY T0.[DocDate], T0.[CardCode], T2.[SlpName], T1.[ItemCode], T1.[Dscription]

 

Thanks & Regards,

Nagarajan


Viewing all articles
Browse latest Browse all 9236

Trending Articles



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