PostgreSQL - Subqueries in PostgreSQL
You want to find all customers who have placed orders for products in the 'Electronics' category. Given tables:
Which query correctly uses a subquery with
customers(id, name)orders(id, customer_id, product_id)products(id, name, category)Which query correctly uses a subquery with
IN to get these customers?