Hi,
Thanks for posting query.
I think it is not solved your problem. How do you add "Currency" in query result? ( OJDT & JDT1).
Try this query and replace currency as per your requirement:
SELECT T1.[TransId], 'INR' + cast(T1.[Debit] as nvarchar(10)) as Debit, 'INR' + cast(T1.[Credit] as nvarchar(10)) as Credit, 'USD' + cast(T1.[SYSDeb] as nvarchar(10)) as SYSDebit, 'USD' + cast( T1.[SYSCred] as nvarchar(10)) as SYSCredit, 'USD' + cast( T1.[FCDebit] as nvarchar(10)) as FCCdebit, 'USD' + cast( T1.[FCCredit] as nvarchar(10)) as FCCcredit FROM OJDT T0 INNER JOIN JDT1 T1 ON T0.TransId = T1.TransId WHERE T1.[RefDate] between [%0] and [%1] GROUP BY T1.[Debit], T1.[Credit], T1.[SYSCred], T1.[SYSDeb], T1.[FCDebit], T1.[FCCredit],T1.[TransId]
Hope helpful.
Thanks & Regards,
Nagarajan