各國 KPI
在第 1 章,你被要求提供一份關於公司發展的報告。這次你要為每個國家各自準備一份包含 KPI 的類似報告。你的主管想了解自 2019 年初以來,各國的電影租借總數、所有電影的平均評分,以及總營收。
本練習屬於課程
以資料驅動的 SQL 決策制定
動手互動練習
試著完成這個範例程式碼,體驗一下這個練習。
SELECT *
FROM ___ -- Augment the table renting with information about customers
LEFT JOIN ___
___
LEFT JOIN ___ -- Augment the table renting with information about movies
___
___; -- Select only records about rentals since the beginning of 2019