1. 学ぶ
  2. /
  3. コース
  4. /
  5. Intermediate SQL Server

Connected

演習

Creating running totals

You usually don't have to use ORDER BY when using aggregations, but if you want to create running totals, you should arrange your rows! In this exercise, you will create a running total of OrderPrice.

指示

100 XP

Create the window, partition by TerritoryName and order by OrderDate to calculate a running total of OrderPrice.