devxlogo

The SQL Intersect Operator

The SQL Intersect Operator

The SQL Intersect operator returns distinct rows that are output by both the left and right input queries operator.

SELECT expression1, expression2, ... FROM tablesINTERSECTSELECT expression1, expression2, ... FROM tables

Where the same data is present in both result sets, Intersect will return it, otherwise it will not

devx-admin

Share the Post: