AMAZON SQL INTERVIEW QUESTION | Weekday puzzle

  Рет қаралды 849

Data Sculptor

Data Sculptor

Күн бұрын

Пікірлер: 11
@ragulmarley4900
@ragulmarley4900 4 күн бұрын
Nice bro 😊 way u teaching do some video basic to advance sql sir
@sravankumar1767
@sravankumar1767 5 күн бұрын
Superb explanation 👌 👏 👍
@datasculptor2895
@datasculptor2895 4 күн бұрын
Thank you 🙂
@ayyappahemanth7134
@ayyappahemanth7134 2 күн бұрын
What if there are duplicates? Can I just add a row_number as id and do the joins based that id. Does that solve the problem for duplicates?
@gsrsakhilakhil528
@gsrsakhilakhil528 4 күн бұрын
bro dax meeda videos start chey bro
@datasculptor2895
@datasculptor2895 4 күн бұрын
No one is watching bro
@ragulmarley4900
@ragulmarley4900 4 күн бұрын
How to add this combination table do we need to create sir
@datasculptor2895
@datasculptor2895 3 күн бұрын
We need to create it. Script is there in the description
@ishanshubham8355
@ishanshubham8355 2 күн бұрын
Here i tried solving it using MYSQL with recursive cte as ( select days,length(days) - length(replace(days,",","")) +1 as cnt from combination union select days,cnt-1 from cte where cnt >1), cte2 as ( select *, substring_index(substring_index(days,",",cnt),",",-1) as wrd from cte ) select days, max(if(wrd="F",'TRUE',null)) as friday, max(if(wrd="M",'TRUE',null)) as monday, max(if(wrd="R",'TRUE',null)) as thursday, max(if(wrd="S",'TRUE',null)) as saturday, max(if(wrd="T",'TRUE',null)) as tuesday, max(if(wrd="U",'TRUE',null)) as sunday, max(if(wrd="W",'TRUE',null)) as wednesday from cte2 as c1 join weeks as w on c1.wrd = w.letter group by days
@chandramohan-bo5se
@chandramohan-bo5se 5 күн бұрын
Bro.. With out pivot.. Tell me
@datasculptor2895
@datasculptor2895 5 күн бұрын
Transform rows into columns WITHOUT PIVOT operator in SQL kzbin.info/www/bejne/jZe0eHhte7aNfas
WIPRO SQL DATA ANALYST INTERVIEW QUESTION | Rewards data
10:04
Data Sculptor
Рет қаралды 1,9 М.
EY SQL INTERVIEW QUESTION | Daily Targets
13:42
Data Sculptor
Рет қаралды 1,2 М.
Lamborghini vs Smoke 😱
00:38
Topper Guild
Рет қаралды 56 МЛН
I was just passing by
00:10
Artem Ivashin
Рет қаралды 18 МЛН
Правильный подход к детям
00:18
Beatrise
Рет қаралды 1,9 МЛН
HP SQL INTERVIEW QUESTION | How to solve Complex Sorting
7:53
Data Sculptor
Рет қаралды 1 М.
PMC SQL INTERVIEW QUESTION | Altered product details
19:09
Data Sculptor
Рет қаралды 825
Microservices with Databases can be challenging...
20:52
Software Developer Diaries
Рет қаралды 102 М.
Database Indexing Explained (with PostgreSQL)
18:19
Hussein Nasser
Рет қаралды 319 М.
TCS SQL INTERVIEW QUESTION | Solve using 4 ways | Session Data
11:26
Data Sculptor
Рет қаралды 1,1 М.