🚀 November has started! SQLtest.online stays free thanks to donations from people like you. Help us reach this month's goal early so the site keeps running without interruptions. Support now →
SQL code copied to buffer
Task 37:

Orders Total

SQL Server 2022
Calculate the sales totals for orders placed in June 2008. Use the SalesOrderHeader table.
Output columns:
OrdersCount - the number of orders;
AmountTotal - the total amount due (TotalDue);
TaxTotal - the total tax (TaxAmt).
Expected result Columns: 3 · Rows: 1
OrdersCount AmountTotal TaxTotal

Write your query below and click "Check it!". Tables are described in the right pane.

The query result will appear here. Ctrl+Enter - Run query