Convert the following query to be pivoted, using PIVOT() .
SELECT CategoryID, AVG(UnitPrice)
FROM Products
GROUP BY CategoryID;
Convert the following query to be pivoted, using PIVOT() .
SELECT CategoryID, AVG(UnitPrice)
FROM Products
GROUP BY CategoryID;