SQL subquery and R&R
Posted: Wed Jan 05, 2005 3:58 pm
I^m a database person, new to R&R ReportWriter. I have a SQL that brings back the rows that I need the report to show. Note that this SQL has a subquery.____SELECT A.OPNDATE, B.BANKREF, B.CLNTREF, B.AMOUNT, B.QAMOUNT, B.TYPE __FROM MASTER A, TRANSACT B __WHERE A.BANKREF = B.BANKREF __AND A.APACRO = "44986" __AND (B.AMOUNT > 0 OR B.QAMOUNT > 0) __AND B.BANKREF NOT IN (SELECT BANKREF FROM TRANSACT WHERE TYPE = 9) ORDER BY B.BANKREF____I simply want to give this SQL to R&R and tell it where to place the fields listed in the SELECT clause on the report. Can somebody walk me through how I would do this? I know the part where I can place the fields on the report. I just don^t know how to give it an already built SQL.____Also, will R&R give problems due to the subquery?____Thanks in advance__Ramon