sql group by 2 columns example
Example: how to select two columns from table with group by one sql server
SELECT Name, Size, AVG( UnitPrice )
FROM Products
GROUP BY Name, Size;
SELECT Name, Size, AVG( UnitPrice )
FROM Products
GROUP BY Name, Size;