All I'm trying to do is put a group of records from the first table together with a group of records from a second table. I want records meeting certain criteria from the first and all records from the second.
This query produces lines only from the second table. I've changed it several times and get the same 108 record result every time. That is everything in the second table. Unless I make it some really wild criteria, and then I get most of the records from the first table and nothing from the second. What am I doing wrong?
SELECT [location name1], [mailing address1], [mailing address2], [mailing city], [mailing state], [mailing zip5]
FROM LOCATION
WHERE [location name1]="dick*" and "*sporting*";
UNION SELECT [company], [address1], [address2], [city], [state], [zip]
FROM sheet1
ORDER BY [mailing state], [mailing city], [mailing address1];
Thanks for your help.
This query produces lines only from the second table. I've changed it several times and get the same 108 record result every time. That is everything in the second table. Unless I make it some really wild criteria, and then I get most of the records from the first table and nothing from the second. What am I doing wrong?
SELECT [location name1], [mailing address1], [mailing address2], [mailing city], [mailing state], [mailing zip5]
FROM LOCATION
WHERE [location name1]="dick*" and "*sporting*";
UNION SELECT [company], [address1], [address2], [city], [state], [zip]
FROM sheet1
ORDER BY [mailing state], [mailing city], [mailing address1];
Thanks for your help.