AI engineering glossary · SQL databases

What is INTERSECT?

INTERSECT: A set operator that returns only rows appearing in the results of both queries, with duplicates removed. Columns must match in number and compatible type. It is the set-intersection of two result sets.

Level: intermediateTopic: SQL databases

INTERSECT: an example

Emails in both newsletter_subscribers and app_users, giving people on both lists.

Related terms

More SQL databases terms

Where you learn it

INTERSECT is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.

Before you go

Take the cheat sheet with you

One free PDF: the key AI-engineering terms, formulas and Python idioms. No spam; unsubscribe any time.