If UNION ALL
is an addition in T-SQL. What is the equivalent of subtraction?
For example, if I have a table PEOPLE
and a table EMPLOYEES
. And I know if I remove EMPLOYEES
records from PEOPLE
I will be left with my companies CONTRACTORS
.
Is there a way of doing this that is similar to UNION ALL
? One where I don't have to specify any field names? The reason I ask is this is just one hypothetical example. I need to do this several times to many different tables. Assume that the schema of EMPLOYEES
and PEOPLE
are the same.