Question: SELECT employee _ id FROM employees INTERSECT SELECT employee _ id FROM former _ employees ORDER BY employee _ id; Retrieves employee IDs that exist
SELECT employeeid FROM employees INTERSECT
SELECT employeeid FROM formeremployees ORDER BY employeeid;
Retrieves employee IDs that exist in both 'employees' and 'formeremployees' tables and sorts them in ascending order.
Retrieves employee IDs from 'formeremployees' table that do not exist in 'employees' table and sorts them in ascending order.
Retrieves all employee IDs from the 'employees' table and sorts them in ascending order.
Retrieves employee IDs from 'employees' table that do not exist in 'formeremployees'
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
