victorthomas
Programmer
I have a union query which has perfect syntax and is a legal statement.
SELECT ID, Name, Company, Fax1, Notes
FROM dbo.right_fax_unified_phonebook
WHERE (Fax1 IS NOT NULL)
UNION
SELECT ID, Name, Company, Fax2, Notes
FROM dbo.right_fax_unified_phonebook1
WHERE (Fax2 IS NOT NULL)
The query runs but the Query designer refuses to save the view. The error message that I get is:
"View definiation includes no output columns or includes no items in the FROM clause.
Apparently this is known limitation in MS SQL, does anyone know of a workaround to this?
I don't understand how SQL 2000 is "SQL Compliant" but won't save a statement containing the UNION command?
SELECT ID, Name, Company, Fax1, Notes
FROM dbo.right_fax_unified_phonebook
WHERE (Fax1 IS NOT NULL)
UNION
SELECT ID, Name, Company, Fax2, Notes
FROM dbo.right_fax_unified_phonebook1
WHERE (Fax2 IS NOT NULL)
The query runs but the Query designer refuses to save the view. The error message that I get is:
"View definiation includes no output columns or includes no items in the FROM clause.
Apparently this is known limitation in MS SQL, does anyone know of a workaround to this?
I don't understand how SQL 2000 is "SQL Compliant" but won't save a statement containing the UNION command?