227k views
1 vote
What set operator would you use if you wanted to see all of the Customers and the Employees including any records that may appear in both Customers and Employees? select firstname ,lastname ,phone from Customers select firstname ,lastname ,phone from Employees; Group of answer choices1 INTERSECT2 EXCEPT3 UNION ALL4 UNION

User Ekatz
by
8.7k points

1 Answer

6 votes

Answer:

1. INTERSECT

Step-by-step explanation:

Intersection is the set operator that gives us the information which is common to both tables. In this case the query will be:

SELECT firstname, lastname, phone FROM Customers

INTERSECT

SELECT firstname, lastname, phone FROM Employees;

User Blyde
by
7.8k points