165k views
5 votes
Which of the following standard query operator returns the common elements from two collections? Distinct Except Intersect Union Expression tree is ___. I

User Wizzard
by
7.2k points

1 Answer

1 vote

Answer:

Intersect

Step-by-step explanation:

Intersect is useful when we want to get common elements from two collections. When we go for sql server this query operator is used to select the common records in both tables based on some condition.

the syntax for this in sql server is as shown below

SELECT expression1, expression2, ... expression

FROM tables

[WHERE conditions]

INTERSECT

SELECT expression1, expression2, ... expression

FROM tables

[WHERE conditions];

User JudRoman
by
6.8k points