SESSION NAME: Sub Queries.
QUESTION NAME: Sub Query - 3.
TABLE DESCRIPTION:
name ), salary, department id for those employees who
of any of the departments.
Table name = sub_employees
Use Sub Queries
CODE:
SELECT first_name, last_name, salary, department_id FROM sub_employees WHERE salary IN ( SELECT MIN(salary) FROM sub_employees GROUP BY department_id );
0 Comments