thinQmaster Virtual testing partner Adaptive practice exams that find your weak spots and drill them. Every answer explained. From $69
Enroll

thinQmaster

Find your exam

Five questions free, before you decide.

Step 1 · choose a vendor

In one of our camps? Your practice exams come with the tuition — they are on your study page already.

Data & Analytics · Foundational

IN Operator

A predicate that tests whether a value matches any value in a list or subquery.

Definition

IN is shorthand for several OR equality conditions. With a subquery it acts like a semi join. NOT IN returns no rows if the list contains a NULL.

Example

WHERE Region IN ('East', 'West')

Exam tip

NOT IN plus a NULL in the subquery means zero rows; use NOT EXISTS instead.

Related terms