├── .gitignore ├── 1-queries ├── 01_introduction.sql ├── 02_select.sql ├── 03_streaming_wars.sql ├── 04_rotten_tomatoes.sql ├── 05_like.sql ├── 06_golden_age.sql ├── 07_order_by.sql └── 08_nyc_restaurants.sql ├── 2-aggregates ├── 09_music_playlist.sql ├── 10_counting_rows.sql ├── 11_old_new.sql ├── 12_total_playtime.sql ├── 13_billboard_hot_100.sql ├── 14_group_by.sql └── 15_video_games.sql ├── 3-new-table ├── 16_create_table.sql ├── 17_insert_into.sql ├── 18_alter_table.sql ├── 19_update_set.sql ├── 20_delete_from.sql └── 21_bffs.sql ├── 4-multiple-tables ├── 22_joins.sql ├── 23_locked_in.sql ├── 24_inner_join.sql ├── 25_left_join.sql ├── 26_students_teachers.sql └── 27_online_shop.sql ├── LICENSE └── README.md /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | -------------------------------------------------------------------------------- /1-queries/01_introduction.sql: -------------------------------------------------------------------------------- 1 | -- Introduction 🛢️ 2 | -- Codédex 3 | 4 | SELECT * FROM shows; 5 | -------------------------------------------------------------------------------- /1-queries/02_select.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codedex-io/sql-101/HEAD/1-queries/02_select.sql -------------------------------------------------------------------------------- /1-queries/03_streaming_wars.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codedex-io/sql-101/HEAD/1-queries/03_streaming_wars.sql -------------------------------------------------------------------------------- /1-queries/04_rotten_tomatoes.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codedex-io/sql-101/HEAD/1-queries/04_rotten_tomatoes.sql -------------------------------------------------------------------------------- /1-queries/05_like.sql: -------------------------------------------------------------------------------- 1 | -- Like 😂 2 | -- Codédex 3 | 4 | SELECT * 5 | FROM shows 6 | WHERE genre LIKE '%com%'; 7 | -------------------------------------------------------------------------------- /1-queries/06_golden_age.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codedex-io/sql-101/HEAD/1-queries/06_golden_age.sql -------------------------------------------------------------------------------- /1-queries/07_order_by.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codedex-io/sql-101/HEAD/1-queries/07_order_by.sql -------------------------------------------------------------------------------- /1-queries/08_nyc_restaurants.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codedex-io/sql-101/HEAD/1-queries/08_nyc_restaurants.sql -------------------------------------------------------------------------------- /2-aggregates/09_music_playlist.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codedex-io/sql-101/HEAD/2-aggregates/09_music_playlist.sql -------------------------------------------------------------------------------- /2-aggregates/10_counting_rows.sql: -------------------------------------------------------------------------------- 1 | -- Counting Rows 🐦‍⬛ 2 | -- Codédex 3 | 4 | SELECT COUNT(*) 5 | FROM playlist; 6 | -------------------------------------------------------------------------------- /2-aggregates/11_old_new.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codedex-io/sql-101/HEAD/2-aggregates/11_old_new.sql -------------------------------------------------------------------------------- /2-aggregates/12_total_playtime.sql: -------------------------------------------------------------------------------- 1 | -- Total Playtime ⏱️ 2 | -- Codédex 3 | 4 | SELECT SUM(duration) 5 | FROM playlist; -------------------------------------------------------------------------------- /2-aggregates/13_billboard_hot_100.sql: -------------------------------------------------------------------------------- 1 | -- Billboard Hot 100 ⏰ 2 | -- Codédex 3 | 4 | SELECT AVG(duration) 5 | FROM playlist; -------------------------------------------------------------------------------- /2-aggregates/14_group_by.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codedex-io/sql-101/HEAD/2-aggregates/14_group_by.sql -------------------------------------------------------------------------------- /2-aggregates/15_video_games.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codedex-io/sql-101/HEAD/2-aggregates/15_video_games.sql -------------------------------------------------------------------------------- /3-new-table/16_create_table.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codedex-io/sql-101/HEAD/3-new-table/16_create_table.sql -------------------------------------------------------------------------------- /3-new-table/17_insert_into.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codedex-io/sql-101/HEAD/3-new-table/17_insert_into.sql -------------------------------------------------------------------------------- /3-new-table/18_alter_table.sql: -------------------------------------------------------------------------------- 1 | -- Alter Table 🕸️ 2 | -- Codédex 3 | 4 | ALTER TABLE companies 5 | ADD COLUMN website TEXT; -------------------------------------------------------------------------------- /3-new-table/19_update_set.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codedex-io/sql-101/HEAD/3-new-table/19_update_set.sql -------------------------------------------------------------------------------- /3-new-table/20_delete_from.sql: -------------------------------------------------------------------------------- 1 | -- Delete From ➖ 2 | -- Codédex 3 | 4 | DELETE FROM companies 5 | WHERE name = 'BeReal'; -------------------------------------------------------------------------------- /3-new-table/21_bffs.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codedex-io/sql-101/HEAD/3-new-table/21_bffs.sql -------------------------------------------------------------------------------- /4-multiple-tables/22_joins.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codedex-io/sql-101/HEAD/4-multiple-tables/22_joins.sql -------------------------------------------------------------------------------- /4-multiple-tables/23_locked_in.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codedex-io/sql-101/HEAD/4-multiple-tables/23_locked_in.sql -------------------------------------------------------------------------------- /4-multiple-tables/24_inner_join.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codedex-io/sql-101/HEAD/4-multiple-tables/24_inner_join.sql -------------------------------------------------------------------------------- /4-multiple-tables/25_left_join.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codedex-io/sql-101/HEAD/4-multiple-tables/25_left_join.sql -------------------------------------------------------------------------------- /4-multiple-tables/26_students_teachers.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codedex-io/sql-101/HEAD/4-multiple-tables/26_students_teachers.sql -------------------------------------------------------------------------------- /4-multiple-tables/27_online_shop.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codedex-io/sql-101/HEAD/4-multiple-tables/27_online_shop.sql -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codedex-io/sql-101/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codedex-io/sql-101/HEAD/README.md --------------------------------------------------------------------------------