How can we find emails present in both customer and subscriber tables?
INTERSECT returns only the distinct rows that appear in both query result sets.
Finding overlap between customer lists and newsletter subscribers, shared account audits.
SELECT email
FROM customers
INTERSECT
SELECT email
FROM subscribers;Practice typing production-grade SQL code for INTERSECT.