PostgreSQL - Subqueries in PostgreSQL
What is a primary reason to use subqueries in PostgreSQL?
SELECT * FROM orders WHERE customer_id IN (SELECT id FROM customers WHERE city = 'Chicago');