開始使用免費開始

ORDER BY

在這個練習中,你會用 grid 資料集來練習 ORDER BY。它已經載入並可直接使用!這個資料集包含美國停電事件的部分公開資訊。

主要欄位包括:

  • description:停電的原因/成因。
  • nerc_region:North American Electricity Reliability Corporation(北美電力可靠度公司,簡稱 NERC)為確保電網可靠度而成立,並由多個區域單位組成。
  • demand_loss_mw:停電期間未傳輸/未消耗的電力量(以 MW 計)。

本練習屬於課程

SQL Server 入門

檢視課程

動手互動練習

試著完成這個範例程式碼,體驗一下這個練習。

-- Select the first 20 rows from the specified columns
SELECT 
  ___ (___) ___, 
  event_date 
FROM 
  grid 
  -- Order your results by the event_date column
____;
編輯並執行程式碼