You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Case Study #3 - Foodie-Fi/Solution.md
+9-11Lines changed: 9 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,7 @@
4
4
5
5
Danny realised that he wanted to create a new streaming service that only had food related content - something like Netflix but with only cooking shows!
6
6
Danny finds a few smart friends to launch his new startup Foodie-Fi in 2020 and started selling monthly and annual subscriptions, giving their customers unlimited on-demand access to exclusive food videos from around the world!
7
+
7
8
This case study focuses on using subscription style digital data to answer important business questions.
8
9
9
10
Full description: [Case Study #3 - Foodie-Fi](https://8weeksqlchallenge.com/case-study-3/)
<details><summary> Click to expand :arrow_down: </summary>
722
719
723
720
The following are open ended questions which might be asked during a technical interview for this case study - there are no right or wrong answers, but answers that make sense from both a technical and a business perspective make an amazing impression!
724
721
@@ -737,7 +734,7 @@ Let's calculate month over month grow using `lag()` window function:
737
734
````sql
738
735
SET
739
736
search_path = foodie_fi;
740
-
select
737
+
SELECT
741
738
DATE_TRUNC('month', start_date) AS month,
742
739
COUNT(customer_id) AS current_number_of_customers,
743
740
LAG(COUNT(customer_id), 1) over (
@@ -867,3 +864,4 @@ If a paying user churns then we can ask them about the reasons - why they decide
867
864
And also send them some reminders from time to time.
868
865
869
866
How to validate: A/B tests, cohort analysis - number of active customers by date (retention day 7, retention day 30 etc.).
0 commit comments