sql group by two columns code 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;