PostgreSQL - Subqueries in PostgreSQL
You want to find all employees who work in departments that have active projects. Given:
Which query correctly uses a subquery with
employees(id, name, department_id)departments(id, name)projects(id, department_id, active)Which query correctly uses a subquery with
IN to find these employees?