Subqueries:

SELECT product_name
FROM products
WHERE category_id IN (SELECT category_id FROM categories WHERE category_name = 'Electronics');

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *