Answers for "Usar GROUP BY con varios grupos"

SQL
0

Usar GROUP BY con varios grupos

USE AdventureWorks2012;
GO
SELECT ProductID, SpecialOfferID, AVG(UnitPrice) AS [Average Price], 
    SUM(LineTotal) AS SubTotal
FROM Sales.SalesOrderDetail
GROUP BY ProductID, SpecialOfferID
ORDER BY ProductID;
GO
Posted by: Guest on October-14-2021

Code answers related to "SQL"

Browse Popular Code Answers by Language