Dear Experts,
Good day!
I am creating a query of A/R Invoice with Payment Details but as I execute the report, I am getting so many duplicated lines. Can someone help me on this?
Below is my query:
SELECT T0.[DocDate], T0.[DocNum], T0.[CardName], T0.[DocTotal], T1.[DocDate], T1.[DocNum], T1.[CashSum] FROM [dbo].[OINV] T0, [dbo].[ORCT] T1, JDT1 T2 WHERE T0.[DocDate] between [%0] and [%1] and T2.[OcrCode2] =[%2] GROUP BY T0.[DocDate], T0.[DocNum], T0.[CardName], T0.[DocTotal], T1.[DocDate], T1.[DocNum], T1.[CashSum]
Thanks!
Ashley