LouieGrandie
Technical User
I have a database that is the data source for some Crystal reports. One table holds data sent from a broker of invoices of my client's product sold to the broker's customers. A SQL Specific Pass Through query reads the invoice history files in the clients accounting system. There is a Union query that simply says "SELECT * FROM {Broker Table} UNION SELECT * FROM {Pass Through Query}. My issue is that in the resulting data set not all of the invoices from the Pass Through Query are displayed. If you run the Pass Through Query there are there but not when I run the Union query. Note that in the Pass Though Query the invoice dates are current so there will be dates up to January of 2015 but in the Broker's table they are a month or so behind so those invoices may only be until November. All the invoices that are missing seem to be the ones past the last date in the Broker table. So my question is, how should I write the Union statement so that ALL the records from the Pass Through Query are displayed in the resulting data set.
Visit Sage's Online Community
Visit Sage's Online Community