9 lines
364 B
SQL
9 lines
364 B
SQL
/*Write a query in SQL to display the detail information of those departments which starting salary is at least 8000.
|
|
|
|
*/
|
|
SELECT * FROM departments
|
|
WHERE department_id IN
|
|
( SELECT department_id
|
|
FROM employees
|
|
GROUP BY department_id
|
|
HAVING MIN(salary)>=8000); |