Microsoft
Software
Hardware
Network
Question : Add Alias to Union query
I have the following union query:
SELECT ProductId, ProductCode, ProductDescription FROM qryProductsStockTakeAdjust
mentReport
UNION SELECT Ast, Desc FROM tblAsterisk
ORDER BY Productcode;
It does not run because the number of columns do not match. How do I add an alias to get the same numbe rof columns on each side?
Answer : Add Alias to Union query
For example, add Null:
SELECT ProductId, ProductCode, ProductDescription FROM qryProductsStockTakeAdjust
mentReport
UNION SELECT Ast, [Desc], Null FROM tblAsterisk
ORDER BY Productcode;
Note: DESC is a reserved keyword.
(°v°)
Random Solutions
get address from listbox
Updating date returned from SQL
outlook 2007 compressing signature image??
Outlook 2007 - How to migrate two outlook profiles from old computer to new computer
How to create a text search facility with wildcard
Delete Reporting Services Instances
Why won't this work
add a zero to a number...
vs2005 generate net 1.1
What the best easiest free learning web for VB in access for starters