Data Analysis SQL Interview Questions | Running SUM | Who Hit the Sales Target First

  Рет қаралды 66,816

Absent Data

Absent Data

Күн бұрын

Пікірлер: 43
@johnvak7390
@johnvak7390 7 ай бұрын
I started learning sql 2 month ago, and man I woulda been lost if i saw this. Now that 2 month have past, I can understand this. Woo
@absentdata
@absentdata 7 ай бұрын
So glad that you were able to found my content too
@SapeHallward
@SapeHallward 23 күн бұрын
What resources do you use most to learn sql?
@johnvak7390
@johnvak7390 22 күн бұрын
@@SapeHallward SQL beginner courses on KZbin
@TheDataworm
@TheDataworm 12 күн бұрын
@@absentdata find*
@mauthoigian8027
@mauthoigian8027 11 ай бұрын
I think you should divide the problem into 2 parts: 1.employee reaching 100k earliest and 2.employee reaching 100k fastest. Your solution helps with the 1st prob and the 2nd problem should use other logic (compare the days it takes for each emp to get 100k sales ) 🎉
@absentdata
@absentdata 11 ай бұрын
Nice approach
@brandoncyoung
@brandoncyoung Жыл бұрын
Really great SQL tip!
@absentdata
@absentdata Жыл бұрын
Glad it was helpful!
@southafricangamer7174
@southafricangamer7174 Ай бұрын
I had to take it in piece by piece and understood :)
@absentdata
@absentdata Ай бұрын
Thats the best way to learn. Great!
@shashidharr6595
@shashidharr6595 Күн бұрын
i love your videos thank you so much for teaching nice
@absentdata
@absentdata Күн бұрын
Glad you're enjoying them!
@dany5961
@dany5961 10 күн бұрын
If you keep sql script for the table solving in description is helpful to practice .
@SergiusBfg
@SergiusBfg 6 ай бұрын
You window func in ussless. You can group BEFORE selection. And try CTE. It will be more performaanced
@HarshKumar-jw7eu
@HarshKumar-jw7eu 2 ай бұрын
Fall in love with this query
@ubaid1231
@ubaid1231 Ай бұрын
Sir, please share table also, so, we practice in sql server by hand..
@Gauravkumar-wk1rf
@Gauravkumar-wk1rf Ай бұрын
Can you provide tables database in your shorts or channel
@deaconwill2430
@deaconwill2430 2 ай бұрын
really good explanation
@gurubellimanoharsai7416
@gurubellimanoharsai7416 Күн бұрын
what is meant for order by 2 here
@absentdata
@absentdata Күн бұрын
order by the second column
@Thekingslayer-ig5se
@Thekingslayer-ig5se Жыл бұрын
Great one bro
@absentdata
@absentdata Жыл бұрын
I appreciate it!
@zg3671
@zg3671 Ай бұрын
Excel can solve this with the ifs function
@apamwamba
@apamwamba 6 күн бұрын
sure but this about SQL
@suryateja1320
@suryateja1320 5 ай бұрын
What is the sql application we should use to learn for data analytics for begginers
@absentdata
@absentdata 5 ай бұрын
MySQL is a good one
@Gauravkumar-wk1rf
@Gauravkumar-wk1rf Ай бұрын
Nice video
@akkshhey09
@akkshhey09 Жыл бұрын
Why did you do MIN(sale_date)?
@absentdata
@absentdata Жыл бұрын
We want to get the first date at which the sum was 100,000 or more. So we use the MIN() to get that date
@sanjeevkumawat9694
@sanjeevkumawat9694 Жыл бұрын
I this question could be solved by this way also: Select salesperson_name, min(sale_date) as target from sales_data Group by salesperson_name Having sum(amount)= 100000 Order by target
@absentdata
@absentdata Жыл бұрын
This query will only return the first date where the sales person had a single day of sales at the 10000. It does not account for the previous sales. So a running total is needed.
@urdaty
@urdaty Жыл бұрын
What does order by 2 mean?
@koushikkanumuri253
@koushikkanumuri253 Жыл бұрын
it means order by 2nd column , in this case it's sale date
@absentdata
@absentdata Жыл бұрын
Second column
@tuturam2510
@tuturam2510 Жыл бұрын
what software guys?
@absentdata
@absentdata Жыл бұрын
Microsoft SQL Server Studio but Windows Functions work in most DBMS with the exception of SQL lite and a few others.
@Smile-et3fe
@Smile-et3fe Жыл бұрын
what does partition by do?
@absentdata
@absentdata Жыл бұрын
It sets a window or group in which you want to do something with. In this case, we want the running sum of each sales person. So the partition is each sales person
@alexkuznetsov5958
@alexkuznetsov5958 Ай бұрын
Very poor video
@absentdata
@absentdata Ай бұрын
Thanks
@ubaid1231
@ubaid1231 Ай бұрын
Why poor ?
@mitty3674
@mitty3674 22 күн бұрын
@@absentdataplease continue making these videos they’re really helpful
Kluster Duo #настольныеигры #boardgames #игры #games #настолки #настольные_игры
00:47
Friends make memories together part 2  | Trà Đặng #short #bestfriend #bff #tiktok
00:18
Family Love #funny #sigma
00:16
CRAZY GREAPA
Рет қаралды 4,9 МЛН
龟兔赛跑:好可爱的小乌龟#short #angel #clown
01:00
Super Beauty team
Рет қаралды 77 МЛН
Day in the Life of a Data Analyst (Work From Home) | *Realistic*
9:05
Coding with Dee
Рет қаралды 116 М.
Practice SQL Interview Query | Big 4 Interview Question
14:47
SQL Interview Question | Use Different Methods to Find the Nth Highest Salary
14:04
Infosys SQL Interview Question
9:23
Cloud Challengers
Рет қаралды 30 М.
Walmart SQL Interview Question | SQL Window Functions | Advanced
11:31
Kluster Duo #настольныеигры #boardgames #игры #games #настолки #настольные_игры
00:47