SQL - Subqueries
You want to list each product with its price and the average price of all products in the same category. Which query correctly uses a scalar subquery in the
Tables:
SELECT clause to achieve this?Tables:
products(product_id, product_name, category_id, price)