JV,
I think you might want to you a UNION ALL if you want to list all of the SSN's on both tables,
Some thing like this,
SELECT Employee.First AS Name, "First Name" as TYPE
FROM Employee;
UNION ALL SELECT Employee.Last, "Last Name"
FROM Employee
ORDER BY 1;
Let me know how this goes VJ
Later,
Fritts
when you use UNION the structure of the two tables has to be identical and as you said UNION ALL returns ALL records on both tables, which will probably lead to duplication.
JV,
The query in my previous posting returns only the SSNs that are not present in the master table. If I didn't get it right and you want to display ALL the SSNs from the child then use this:
SELECT a.SSN
FROM <child> as a left join <master> b on a.SSN = b.SSN
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.