EXISTS and NOT EXISTS
Description
EXISTS Operator
EXISTS OperatorSyntax:
SELECT column1, column2, ...
FROM table_name
WHERE EXISTS (subquery);Example:
emp_id
name
dept_id
dept_id
dept_name
Result:
name
NOT EXISTS Operator
NOT EXISTS OperatorSyntax:
Example:
Result:
name
Last updated