sql how to group by only when two columns are same 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;