PostgreSQL - Subqueries in PostgreSQL
Given the tables:
and
What does this query return?
products(id, price)and
discounts(min_price)What does this query return?
SELECT id FROM products WHERE price > ALL (SELECT min_price FROM discounts);
