Results 1
Zac
Dave
Ned
Results 2
Eric
Mark
Zac
This is the output from a select query.
select names from table where id=1 UNION select names from tables where id=2;
I want to select all from these results that are contained in both results. Union returns all the names (Zac only once). How do I get the query to only return Zac?