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

Total Sales by BP by Date Query

$
0
0

Hello,

 

I am looking to change this query to have the sum of all invoices per BP rather than listing the totals of each invoice.

 

SELECT T0.[DocNum], T0.[CardCode], T0.[CardName], T0.[TaxDate], T0.[DocTotal], T1.[SlpName],T3.[State2] FROM [dbo].[ORDR]  T0 INNER JOIN [dbo].[OSLP]  T1 ON T0.[SlpCode] = T1.[SlpCode] INNER JOIN [dbo].[OCRD]  T3 ON T0.[CardCode] = T3.[CardCode] WHERE T0.[TaxDate] between [%0] and [%1] ORDER BY T0.[CardName]

 

What do I need to change to make it show the total for the date range selected and not each individual invoice total?

 

Thanks for the help,

Ben


Viewing all articles
Browse latest Browse all 2638

Trending Articles



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