DBMS & SQL · 4 topics · 26 questions
Intermediate
For students who know basic SQL. Covers normalization and functional dependencies, joins, subqueries and CTEs, and CASE, string and date functions.
Intermediate progress0%
- 1st Visit
- 0/26
- 2nd Visit
- 0/26
- Revise
- 0/26
01Normalization
0/6
Normalization is the process of organising tables so that each fact is stored only once. A badly designed table repeats data, which causes update, insert and delete…
Topic guide02SQL: Joins
0/9
A join combines rows from two tables using a related column, usually a foreign key matching a primary key. INNER JOIN keeps only matching pairs; LEFT JOIN keeps every…
Topic guide03SQL: Subqueries & CTEs
0/5
A subquery is a query inside another query. It can return one value, used in a comparison such as salary (SELECT AVG(salary) ...), a list of values, used with IN or…
Topic guide| # | Problem | Platform | Difficulty | Open | 1st1st Visit | 2nd2nd Visit | RevRevise |
|---|---|---|---|---|---|---|---|
| 1 | Customers Who Never Order | LeetCode | Easy | Solve Customers Who Never Order on LeetCode (opens in a new tab) | |||
| 2 | Second Highest Salary | LeetCode | Medium | Solve Second Highest Salary on LeetCode (opens in a new tab) | |||
| 3 | Department Highest Salary | LeetCode | Medium | Solve Department Highest Salary on LeetCode (opens in a new tab) | |||
| 4 | Customers Who Bought All Products | LeetCode | Medium | Solve Customers Who Bought All Products on LeetCode (opens in a new tab) | |||
| 5 | Investments in 2016 | LeetCode | Medium | Solve Investments in 2016 on LeetCode (opens in a new tab) |
04SQL: CASE, String & Date Functions
0/6
Many SQL problems need values to be transformed before they are compared or grouped. CASE WHEN ... THEN ... ELSE ... END is SQL's if else expression; placed inside SUM…
Topic guide| # | Problem | Platform | Difficulty | Open | 1st1st Visit | 2nd2nd Visit | RevRevise |
|---|---|---|---|---|---|---|---|
| 1 | Triangle Judgement | LeetCode | Easy | Solve Triangle Judgement on LeetCode (opens in a new tab) | |||
| 2 | Fix Names in a Table | LeetCode | Easy | Solve Fix Names in a Table on LeetCode (opens in a new tab) | |||
| 3 | Rising Temperature | LeetCode | Easy | Solve Rising Temperature on LeetCode (opens in a new tab) | |||
| 4 | Group Sold Products By The Date | LeetCode | Easy | Solve Group Sold Products By The Date on LeetCode (opens in a new tab) | |||
| 5 | Monthly Transactions I | LeetCode | Medium | Solve Monthly Transactions I on LeetCode (opens in a new tab) | |||
| 6 | Confirmation Rate | LeetCode | Medium | Solve Confirmation Rate on LeetCode (opens in a new tab) |