EXISTS returns either true or false. The EXISTS is used to check for the existence of rows returned by the subquery. EXISTS operator returns TRUE if the subquery returns one or more rows. It can be used in a SELECT, INSERT, UPDATE, or DELETE statement.
Syntax -
With SELECT Statement
With SELECT Statement using NOT EXISTS
With INSERT Statement
With DELETE Statement
Example
Trending Tutorials