Subqueries1 / 4
EASY·Output prediction
Given these tables: employees: | id | name | dept_id | |----|-------|---------| | 1 | Alice | 10 | | 2 | Bob | 20 | | 3 | Carol | 30 | departments: | id | name | budget | |----|-------|--------| | 10 | Sales | 50000 | | 20 | Eng | 200000 | | 30 | HR | 40000 | What does this query return?
SELECT name FROM employees WHERE dept_id IN ( SELECT id FROM departments WHERE budget > 100000 );
Sign in to save your progress.