Skip to content

Commit

Permalink
✨ docs: add topics page (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bilbottom authored Jul 23, 2024
1 parent 2e54f50 commit 2f7e5ad
Show file tree
Hide file tree
Showing 24 changed files with 167 additions and 2 deletions.
6 changes: 6 additions & 0 deletions docs/challenging-sql-problems/challenging-sql-problems.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@ Expect to spend a bit of time on these.

---

## Questions by topic

To see the questions grouped by topic, head over to the [topics page](topics.md).

---

## Looking for more?

The repo [Bilbottom/sql-models](https://github.com/Bilbottom/sql-models) has a collection of custom SQL models, some of which come with exercises.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
---
hide:
- tags
tags:
- asof join
- custom axis
---

# Combining dimensions 🔗

> [!SUCCESS] Scenario
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
---
hide:
- tags
tags:
- bitshift
---

# Customer churn 🔄

> [!SUCCESS] Scenario
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
---
hide:
- tags
tags:
- recursive CTE
---

# Fibonacci sequence 🔢

> [!INFO]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
---
hide:
- tags
tags:
- asof join
---

# Outstanding invoices 💱

> [!SUCCESS] Scenario
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
---
hide:
- tags
tags:
- string similarity
---

# Personalised customer emails 📨

> [!SUCCESS] Scenario
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
---
hide:
- tags
tags:
- window function
- gaps and islands
---

# Suspicious login activity 🤔

> [!SUCCESS] Scenario
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
---
hide:
- tags
tags:
- window function
---

# Temperature anomaly detection 🔍

> [!SUCCESS] Scenario
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
---
hide:
- tags
tags:
- pivot and unpivot
- semi-structured data
---

# UK bank holidays 📅

> [!NOTE]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
---
hide:
- tags
tags:
- window function
- gaps and islands
- correlated subquery
- custom axis
---

# Encoding datelist ints 🔐

> [!SUCCESS] Scenario
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
---
hide:
- tags
tags:
- recursive CTE
---

# Loan repayment schedule 💰

> [!SUCCESS] Scenario
Expand Down
7 changes: 7 additions & 0 deletions docs/challenging-sql-problems/problems/gold/travel-plans.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
---
hide:
- tags
tags:
- recursive CTE
---

# Travel plans 🚂

> [!SUCCESS] Scenario
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
---
hide:
- tags
tags:
- window function
- gaps and islands
---

# Bannable login activity ❌

> [!SUCCESS] Scenario
Expand Down
7 changes: 7 additions & 0 deletions docs/challenging-sql-problems/problems/silver/bus-routes.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
---
hide:
- tags
tags:
- recursive CTE
---

# Bus routes 🚌

> [!SUCCESS] Scenario
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
---
hide:
- tags
tags:
- window function
---

# Customer sales running totals 📈

> [!SUCCESS] Scenario
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
# Decoding datelist ints 🔐
---
hide:
- tags
tags:
- recursive CTE
- bitshift
---

# Decoding datelist ints 🔓

> [!SUCCESS] Scenario
>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
---
hide:
- tags
tags:
- custom axis
---

# Funnel analytics ⏬

> [!SUCCESS] Scenario
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
---
hide:
- tags
tags:
- recursive CTE
---

# Mandelbrot set 🌀

> [!INFO]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
---
hide:
- tags
tags:
- pivot and unpivot
- correlation
---

# Metric correlation 🔀

> [!SUCCESS] Scenario
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
---
hide:
- tags
tags:
- pivot and unpivot
- linear regression
---

# Predicting values 🎱

> [!SUCCESS] Scenario
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
---
hide:
- tags
tags:
- pivot and unpivot
- rollup
---

# Region precipitation ☔

> [!SUCCESS] Scenario
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Decoding datelist ints 🔐
# Decoding datelist ints 🔓

> [!TIP]
>
Expand Down
5 changes: 5 additions & 0 deletions docs/challenging-sql-problems/topics.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Questions by topic

_Note: a question can appear in multiple topics._

<!-- material/tags -->
3 changes: 3 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ nav:
- challenging-sql-problems/solutions/gold/supply-chain-network.md
- challenging-sql-problems/solutions/gold/encoding-datelist-ints.md
- challenging-sql-problems/solutions/gold/travel-plans.md
- challenging-sql-problems/topics.md

markdown_extensions:
- admonition
Expand All @@ -138,3 +139,5 @@ markdown_extensions:
plugins:
- search
- callouts # https://github.com/sondregronas/mkdocs-callouts
- tags:
tags_file: challenging-sql-problems/topics.md

0 comments on commit 2f7e5ad

Please sign in to comment.