I have some SQL queries that retrun the following.
- Total Pre Orders Web
- Total Pre Orders Phone
- Total Orders Web
- Total Orders phone
Each one of those queries retrurns a the query name and the count of the query. The query name ahs been addded as just text in the select part.
If I just want to return all the pre orders I can do
Total Pre Orders Web
UNION
Total Pre Orders Phone
This will return
Total Pre Orders Web | 10
Total Pre Orders Phone | 2
How would I go about doing something like
Total Pre Orders Web | 10 | Total Orders Web | 20
Total Pre Orders Phone | 2 | Total Orders Phone | 0
SO I want to do a Union to the side?
CREATE TABLE
statements for the tables in question adding the desired output. Use formatted text please, no screen shots