INTERSECT
Returns common rows in both queries.
sql
1SELECT course FROM students
2INTERSECT
3SELECT course FROM teachers;Only courses in both tables.

Returns common rows in both queries.
1SELECT course FROM students
2INTERSECT
3SELECT course FROM teachers;Only courses in both tables.