SQL Basics: Simple IN
departments table schema
sales table schema
resultant table schema
Solutions
ποΈ Sql
Last updated
Last updated
SELECT id, name
FROM departments
WHERE id IN (SELECT department_id FROM sales WHERE price > 98)