VictoryHighway
Technical User
Hello,
I have a question regarding using a UNION SELECT query. I have so far only seen the UNION SELECT used to add a single entry on to the query (usually an "All"). Is it possible to add multiple entries on? I have tried to do that, and I keep getting errors such as "The number of columns in the two tables or queries of a Union Query do not match." How do I fix that?
Here is my code:
Thanks in advance for your help.
--Geoffrey
I have a question regarding using a UNION SELECT query. I have so far only seen the UNION SELECT used to add a single entry on to the query (usually an "All"). Is it possible to add multiple entries on? I have tried to do that, and I keep getting errors such as "The number of columns in the two tables or queries of a Union Query do not match." How do I fix that?
Here is my code:
Code:
SELECT DISTINCTROW CallType.TypeID, CallType.Product, CallType.Type FROM CallType WHERE (((CallType.Product)=1)) ORDER BY CallType.Type
UNION SELECT "1","0", "Application","2","0", "Troubleshooting", "3","0","Request for Information / File(s)", "4","0", "Request for Quotation" FROM CallType
ORDER BY CallType.Type;
Thanks in advance for your help.
--Geoffrey