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