SQL
向你的数据提出任何问题。
SQL is the language of databases. Every post, like and game score in an app like Nova lives in database tables, and SQL is how you ask those tables questions. This track starts from zero: reading tables with SELECT, filtering and sorting, counting and grouping, joining tables, changing data safely, designing your own tables, and finally subqueries, CTEs and window functions.
Every lesson works with the same small dataset from Nova, a made-up social app (users, posts, likes and scores) and shows the exact result of every query, so you always know what answer to expect.
- 课时
- 25
- 时长
- 3 小时
- 级别
- 初级
本课程的内容目前为英文。
- 铜牌 可挑战
- 银牌 可挑战
- 金牌 未解锁
准备好证明自己了吗?
三场考试正等着你:铜牌、银牌和金牌。
学完后你将能够
- Read and filter any table with SELECT and WHERE
- Summarize data with COUNT, SUM, AVG, GROUP BY and HAVING
- Combine tables with INNER JOIN and LEFT JOIN
- Insert, update and delete rows safely inside transactions
- Design tables with keys, constraints and indexes
- Build a leaderboard with subqueries, CTEs and window functions
学习旅程
1 第 1 单元Databases and tables
What a relational database is, how tables are built, and your first SELECT.
0 / 32 第 2 单元Filtering and sorting
Keep only the rows you want, handle NULL correctly and put results in order.
0 / 43 第 3 单元Aggregation
Turn many rows into answers: counts, totals, averages and groups.
0 / 34 第 4 单元Joins
Combine tables: match rows, keep the unmatched ones and find what is missing.
0 / 35 第 5 单元Changing data
Add, change and remove rows, and use transactions so mistakes can be undone.
0 / 46 第 6 单元Designing tables
Create tables with the right types, protect them with constraints and speed them up with indexes.
0 / 47 第 7 单元Powerful queries
Subqueries, EXISTS, CTEs, CASE and window functions for real leaderboards.
0 / 4