SELECT column1, column2, ...
FROM table1
INTERSECT
SELECT column1, column2, ...
FROM table2;
This query will return the common records that exist in both table1 and table2. If a row appears in both tables, it will be included in the result set.
Keep in mind that the INTERSECT operator works with columns of the same data type and in the same order in both SELECT statements.
Discover more about INTERSECT operator and its real time application in the video!
0 Comments