Using the Sales.SalesOrderDetail table, which Order (SalesOrderID) had the highest total…
- User
Using the Sales.SalesOrderDetail table, which Order (SalesOrderID) had the highest total unit price? Database: AdventureWorks2019 Table: Sales.SalesOrderDetail
Assistant
sqlSELECT SalesOrderID, SUM(UnitPrice) AS TotalUnitPrice FROM Sales.SalesOrderDetail GROUP BY SalesOrderID ORDER BY TotalUnitPrice DESC LIMIT 1;
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.