Yes, ut you must use an ODBC data connection, not a native connection, to your data. What type of database are you using and how are you connecting to the database?
Software Sales, Training, Implementation and Support for Exact Macola, eSynergy, and Crystal Reports
You cannot use both a left and a right join between the same two tables. You could do a left join from table1 to Table2 in the main report and a left join from Table2 to Table1 in an unlinked subreport, but you would get some duplicate records which you would need to suppress using a shared variable.
A better solution might be to use a Union of the two tables in your SQL Query. I've never done this, but if you do a keyword search using "Union" you should be able to get enough help to do this.
Assuming that these tables have the same columns, you can create a Union by creating the report with the first table, then copy the contents of the Database->Show SQL Query
Type the word Union in afterwards
Then paste the SQL again below it, and change the table names in the second SQL.
If they're not the same, please post example data and expected output.
Your description makes it sound like the two tables would have no records in common--invoiced and not invoiced. Then you could just use the unlinked subreport approach for the records from the second table.
Or does the Keyed Orders table include orders that have been invoiced? In that case, it doesn't seem likely that there would be records in the Invoiced Orders table that were not in the Keyed Orders table. In that case a left join from the Keyed Orders to the Invoiced Orders table would return all orders. As you can see, we need more information about your table structure.
Your last post does not explain whether you have tried previous suggestions--specifically, the Union method suggested by both SV and me would best address the situation where there were records in each table not found in the other, but with some records in common.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.