SQL

EXISTS Operator

English

Overview

An operator that checks only whether one or more rows exist in the result of a subquery.

Details

While the IN operator compares each value against the subquery's results one by one, EXISTS can stop as soon as it finds a single matching row exists, which tends to make it perform faster on large datasets.

More Database terms