LeetCode 1141: User Activity for the Past 30 Days I

  Рет қаралды 339

Frederik Müller

Frederik Müller

Күн бұрын

Solution and walkthrough of a real SQL interview question for Data Scientist and Data Analyst technical coding interviews. This question is marked as easy and is called "User Activity for the Past 30 Days I".
Try this question: leetcode.com/p...
LeetCode SQL 50 Study Plan: leetcode.com/s...
Check out StrataScratch: www.stratascra...
Find me on LinkedIn: / frederikmueller
Playlists:
• StrataScratch Coding Q...
• LeetCode Database Prob...
• LeetCode SQL 50 Study ...
• LeetCode Easy Database...
• LeetCode Medium Databa...
• LeetCode Hard Database...

Пікірлер: 4
@panendraommina3474
@panendraommina3474 12 күн бұрын
Its haaaarrd , i am forgetting the code next day . How to come over it ?
@frederikmuller
@frederikmuller 12 күн бұрын
Just do a couple similar questions and you’ll internalize it.
@Curiousity22
@Curiousity22 11 күн бұрын
Why hard code it? I am not going to count back 30 days and find the exact date , right? I prefer using this instead(like you said): BETWEEN DATE_SUB('2019-07-27', INTERVAL 29 DAY) AND '2019-07-27'
@frederikmuller
@frederikmuller 10 күн бұрын
I agree that DATE_SUB is much cleaner. I gave the hard coded example as people might make the mistake of subtracting 30 days instead of 29. Looking at a calendar and seeing the specific dates should make it easier for people to understand.
LeetCode 1729: Find Followers Count [SQL]
3:51
Frederik Müller
Рет қаралды 241
LeetCode 1321: Restaurant Growth [SQL]
26:16
Frederik Müller
Рет қаралды 591
My scorpion was taken away from me 😢
00:55
TyphoonFast 5
Рет қаралды 2,7 МЛН
LeetCode 1661: Average Time of Process per Machine [SQL]
8:16
Frederik Müller
Рет қаралды 10 М.
LeetCode 1164: Product Price at a Given Date [SQL]
14:32
Frederik Müller
Рет қаралды 499
LeetCode 1280: Students and Examinations
16:33
Frederik Müller
Рет қаралды 747
MLV Prasad - LeetCode SQL [ EASY ] | 0197 | "Rising Temperature" |
5:32
Data Science University - MLV Prasad
Рет қаралды 3,9 М.
LeetCode 1193: Monthly Transactions I
17:16
Frederik Müller
Рет қаралды 284
LeetCode 1517: Find Users With Valid E-Mails [SQL]
10:54
Frederik Müller
Рет қаралды 267
one year of studying (it was a mistake)
12:51
Jeffrey Codes
Рет қаралды 341 М.
LeetCode 1174: Immediate Food Delivery II
14:51
Frederik Müller
Рет қаралды 503
How to Solve ANY LeetCode Problem (Step-by-Step)
12:37
Codebagel
Рет қаралды 362 М.
LeetCode 1341: Movie Rating [SQL]
18:35
Frederik Müller
Рет қаралды 269