開始使用免費開始

美國演員的年齡

現在你要探索美國男、女演員的年齡。請回報美國最年長與最年輕的男、女演員的出生日期。

本練習屬於課程

以資料驅動的 SQL 決策制定

檢視課程

練習說明

  • FROM 子句中建立一個後續的 SELECT 陳述式,以取得所有美國演員的相關資訊。
  • 將這個後續的 SELECT 陳述式命名為別名 a
  • 對於來自美國的演員,回報最年長與最年輕的男、女演員的出生年份。

動手互動練習

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

SELECT ___, -- Report for male and female actors from the USA 
       ___, -- The year of birth of the oldest actor
       ___ -- The year of birth of the youngest actor
FROM
   ___ -- Use a subsequen SELECT to get all information about actors from the USA
   ___
   ___ -- Give the table the name a
GROUP BY ___;
編輯並執行程式碼