DBMS
SQL queries
About 29 steps, from the first idea to a mastery test.
Stage 0Reading a table4 stepsFree
- 1Pick the columns you need7 min
- 2Keep only the rows that pass7 min
- 3Combine conditions8 min
- 4Sort and keep the top few8 min
Stage 1Shaping the results4 stepsFree
- 1Show each value once6 min
- 2NULL means unknown9 min
- 3Match text with patterns8 min
- 4Compute new columns9 min
Stage 2Counting and grouping4 stepsFree
- 1Summarise with COUNT, SUM and AVG9 min
- 2One answer per group9 min
- 3Filter the groups8 min
- 4Rank the groups9 min
Stage 3Joining tables4 stepsFree
- 1Bring two tables together9 min
- 2Keep the rows with no match10 min
- 3Join a table to itself9 min
- 4Join through a link table10 min
Stage 4Subqueries and window functions5 stepsFree
Stage 5Changing data4 stepsFree
- 1Add rows with INSERT8 min
- 2Change rows with UPDATE8 min
- 3Remove rows with DELETE8 min
- 4Insert or update9 min
Stage 6Mastery4 stepsFree
- 1The second highest, with ties10 min
- 2Find the duplicates10 min
- 3Streaks of consecutive days12 min
- 4Top N in each group11 min