PostgreSQL - Subqueries in PostgreSQL
Given the tables:
What will the following query return?
products(id, name, category_id)categories(id, name)What will the following query return?
SELECT name FROM products WHERE category_id IN (SELECT id FROM categories WHERE name = 'Books');
