You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

5 lines
220 B
SQL

/*22. Write a query in SQL to display the ID for those employees who did two or more jobs in the past.*/
SELECT employee_id
FROM job_history
GROUP BY employee_id
HAVING COUNT(*) >=2;