By Charles McDowell
Comptia Certified Linux Networking Professional.
Cisco Certified Networking Technician.
Microsoft Technology Associate Database Administration
SQL EXISTS Operator
You can test the existence of a record in a subquery with the exists operator.
If the record exist then the subquery returns it.
EXISTS Syntax
SELECT column FROM table WHERE EXISTS (SELECT column FROM table WHERE statement);