TonyScarpelli
Programmer
I have a stored procedure that gets records from two tables with the same structure. I want to combine them into one table, and I have set up a union for this.
However, if the first table (Tmp_VendSum) has no records in it and the other (Tmp_VendSum2) does, the returned data set is empty.
It looks like this
SELECT * FROM Tmp_VendSum
UNION
SELECT * FROM Tmp_VendSum2
Can someone explain if I am using the right syntax for what I want to do?
Thanks.
Tony Scarpelli
Clinical Engineering Dept.
Maine Medical Center
Portland, Maine 04102
However, if the first table (Tmp_VendSum) has no records in it and the other (Tmp_VendSum2) does, the returned data set is empty.
It looks like this
SELECT * FROM Tmp_VendSum
UNION
SELECT * FROM Tmp_VendSum2
Can someone explain if I am using the right syntax for what I want to do?
Thanks.
Tony Scarpelli
Clinical Engineering Dept.
Maine Medical Center
Portland, Maine 04102