Пікірлер
@vinaykumarakinapally3253
@vinaykumarakinapally3253 Күн бұрын
Hi Prasad, Im getting this error as "Incorrect parameter count in the call to native function 'DATEDIFF'" I gave the exact code like you gave select b.id as id from Weather a inner join Weather b on DATEDIFF(Day, a.recordDate, b.recordDate) = 1 and a.temperature < b.temperature
@satendra6200
@satendra6200 5 күн бұрын
very helpful video .. i skip this question
@user-jt5oy1hp5r
@user-jt5oy1hp5r 17 күн бұрын
select player_id, device_id from Activity where event_date in (select min(event_date) as event_date group by player_id from Activity) is the above query achive the same results i cannot test it bcz the problem is for premium subscribers. pls tell if possible
@vinamrasangal8436
@vinamrasangal8436 20 күн бұрын
hi MLV Prasad kaisa hai bhai ?
@vinamrasangal8436
@vinamrasangal8436 20 күн бұрын
this ques is should be marked very easy !!
@sharshithreddy7325
@sharshithreddy7325 27 күн бұрын
it was helpful
@lalitgamer6877
@lalitgamer6877 27 күн бұрын
NIce work❤
@ai.mlvprasad
@ai.mlvprasad 14 күн бұрын
Thank you! 😊
@ankitnishad1229
@ankitnishad1229 27 күн бұрын
Please explain more of why you are doing particular thing i started from basics and its really hard to understood
@swapnavivek9647
@swapnavivek9647 29 күн бұрын
When I run the solution it shows "accepted" with 0.33 as output but when I submit I get wrong answer displayed. WHy like that?Sir please help
@shrutifrancis3320
@shrutifrancis3320 Ай бұрын
Thank you for your video
@venkateshwarb5916
@venkateshwarb5916 Ай бұрын
Good work and clear explanation! Thank you Prasad
@ai.mlvprasad
@ai.mlvprasad 14 күн бұрын
So nice of you
@MHb789
@MHb789 Ай бұрын
Would be better for freshers if more explanation is shown before doing each step
@lokeshdadoriya8105
@lokeshdadoriya8105 Ай бұрын
Best Explanation. Thanks
@ai.mlvprasad
@ai.mlvprasad Ай бұрын
Thank you very much lokesh
@prernaagupta688
@prernaagupta688 Ай бұрын
I can’t see these questions now on leet code . Please help
@kamzzaa7265
@kamzzaa7265 Ай бұрын
nice explanation
@ai.mlvprasad
@ai.mlvprasad 14 күн бұрын
Thanks and welcome
@BasitAIi
@BasitAIi 2 ай бұрын
with cte as ( select seat_id, free, lead(free, 1) over( order by seat_id ) as next lag(free, 1) over( order by seat_id ) as prev from cinema ) select seat_id from cte where ( free = next or free = prev) and free = 1
@naveenvjdandhrudu5141
@naveenvjdandhrudu5141 2 ай бұрын
hi MLV Prasad can you please explain this below hierarchy query (or) make a video on it with your own style......... I was unable to crack this need your support thanks in advance......❤❤✌✌ CREATE TABLE company ( employee varchar(10) primary key, manager varchar(10) ); INSERT INTO company values ('Elon', null); INSERT INTO company values ('Ira', 'Elon'); INSERT INTO company values ('Bret', 'Elon'); INSERT INTO company values ('Earl', 'Elon'); INSERT INTO company values ('James', 'Ira'); INSERT INTO company values ('Drew', 'Ira'); INSERT INTO company values ('Mark', 'Bret'); INSERT INTO company values ('Phil', 'Mark'); INSERT INTO company values ('Jon', 'Mark'); INSERT INTO company values ('Omid', 'Earl'); SELECT * FROM company; /* Given graph shows the hierarchy of employees in a company. Write an SQL query to split the hierarchy and show the employees corresponding to their team.*/ WITH RECURSIVE cte_teams AS ( SELECT mng.employee, CONCAT('Team', ROW_NUMBER() OVER (ORDER BY mng.employee)) AS teams FROM company root JOIN company mng ON root.employee = mng.manager WHERE root.manager IS NULL ), cte AS ( SELECT c.employee, c.manager, t.teams FROM company c CROSS JOIN cte_teams t WHERE c.manager IS NULL UNION SELECT c.employee, c.manager, COALESCE(t.teams, cte.teams) AS teams FROM company c JOIN cte ON cte.employee = c.manager LEFT JOIN cte_teams t ON t.employee = c.employee ) SELECT teams, GROUP_CONCAT(employee, ', ') AS members FROM cte GROUP BY teams ORDER BY teams;
@adityasrivastava8364
@adityasrivastava8364 3 ай бұрын
how about filtering the salary using desc use distinct select the position 2
@CHICCHRONICALS
@CHICCHRONICALS 3 ай бұрын
[42000] [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]An expression of non-boolean type specified in a context where a condition is expected, near ','. (4145) (SQLExecDirectW) getting this following error near where clause can you help.. select * from activity a inner join activity b on dateadd(day,1,a.event_date) = b.event_date and a.player_id = b.player_id where (a.event_date,a.player_id) in (select min(event_date),player_id from activity group by player_id) this is my partial query
@prajyot8002
@prajyot8002 3 ай бұрын
You may have to mentioned from where you are taking ex: (p.firstName, p.lastName, a.city, a.state) because sql doesn’t know what to take from where. Its always a good practice to put table name first. In this scenario it was acceptable if not mentioned
@ai.mlvprasad
@ai.mlvprasad 3 ай бұрын
If it is a duplicate it is mandatory to mention alias table name, for unique column name, it is optional
@prajyot8002
@prajyot8002 3 ай бұрын
@@ai.mlvprasad thank you
@HeraGexcha
@HeraGexcha 3 ай бұрын
in the case stmt why did you use sum and not count, what is affected by using count/sum in that stmt?
@naveenvjdandhrudu5141
@naveenvjdandhrudu5141 3 ай бұрын
I really like your content and the way of explanation by showing schematic way using notepad plz keep it up bro.....my support to u always
@ai.mlvprasad
@ai.mlvprasad 3 ай бұрын
Tq very much for your kind response naveen
@subhasishmishra7747
@subhasishmishra7747 3 ай бұрын
i am not able to understand isnull functionality over here
@sunilrao6090
@sunilrao6090 3 ай бұрын
nice explanation prasad
@kuldeepkushwaha4724
@kuldeepkushwaha4724 3 ай бұрын
DELETE p1.* FROM Person AS p1 INNER JOIN Person AS p2 WHERE p1.email = p2.email AND p1.id > p2.id
@ratikaarora4171
@ratikaarora4171 3 ай бұрын
very helpful playlists, thanks!
@ai.mlvprasad
@ai.mlvprasad 3 ай бұрын
Tq very much ratika
@bannochang
@bannochang 3 ай бұрын
Hi Prasad , from GitHub not able to download or open the Query , can you pls check once . Thanks for your Explanations and help
@Our_Thoughts123
@Our_Thoughts123 4 ай бұрын
How r u thinking..which should we use and which logic should use? Does all comes under practice?
@sandhyarawat1768
@sandhyarawat1768 4 ай бұрын
select r.contest_id , Round(((count( r.user_id))/ (SELECT count(*) FROM users)) *100, 2) as percentage from Users u Left Join Register r on u.user_id = r.user_id group by r.contest_id order by percentage desc, contest_id asc; sir i have written like this. getting error in case 2, getting null values with answer...
@energizer9814
@energizer9814 5 ай бұрын
Hi Prasad a small correction in the final SQL script you have provided. The below code will work correctly SELECT * FROM person_7 WHERE id IN ( SELECT MIN(id) FROM person_7 GROUP BY email );
@satyamgupta4808
@satyamgupta4808 5 ай бұрын
🚨Doubt : can we solve it using row_number: code : WITH ct AS ( SELECT seat_id, free, ROW_NUMBER() OVER (PARTITION BY seat_id) - free AS rn FROM Cinema ) SELECT ct.seat_id FROM ct GROUP BY ct.seat_id, ct.rn HAVING COUNT(*) > 1 order by seat_id;
@kamzzaa7265
@kamzzaa7265 5 ай бұрын
Great explanation :) How many SQLquestions u think we need to practice ?
@ai.mlvprasad
@ai.mlvprasad 5 ай бұрын
150
@dpworld3410
@dpworld3410 5 ай бұрын
well explained
@ai.mlvprasad
@ai.mlvprasad 5 ай бұрын
Tq very much…..
@vinamrasangal8436
@vinamrasangal8436 15 күн бұрын
@@ai.mlvprasad welcome MLVP
@morishbhayani2195
@morishbhayani2195 5 ай бұрын
Nice explanation. Thank you👍👍
@youtubealiens3199
@youtubealiens3199 5 ай бұрын
Great
@agamgupta-ed9ye
@agamgupta-ed9ye 5 ай бұрын
i think we need to use recursive cte
@TusharSharma-tv3oo
@TusharSharma-tv3oo 5 ай бұрын
Hindi mai he bol la
@Israr_ahmm
@Israr_ahmm 6 ай бұрын
What about Null condition?
@ai.mlvprasad
@ai.mlvprasad 5 ай бұрын
left join will create null values when not matching
@Israr_ahmm
@Israr_ahmm 5 ай бұрын
@@ai.mlvprasad understood Thanks 🙏
@darshantkrishnamurthy1944
@darshantkrishnamurthy1944 6 ай бұрын
Logic you explained in the video 1 to 10 it is not cleared
@thedataguyfromB
@thedataguyfromB 6 ай бұрын
Pyspark Step by Step approach and Solutions explanation video : kzbin.info/www/bejne/q4mriYSHe7aJsNUsi=bdOd4JnZz9O-gbJe
@Satish_____Sharma
@Satish_____Sharma 6 ай бұрын
Using ur solution only 15 test cases passed out 17 Now they are asking us to handle null avg price May be they updated test cases Thanks you for sharing knowledge I solved it
@DineshKumar-cs4gk
@DineshKumar-cs4gk 5 ай бұрын
How
@Satish_____Sharma
@Satish_____Sharma 5 ай бұрын
@@DineshKumar-cs4gk let me know if you are also facing same issue?
@DineshKumar-cs4gk
@DineshKumar-cs4gk 5 ай бұрын
Just now fixed using coalesce to handle null
@Satish_____Sharma
@Satish_____Sharma 5 ай бұрын
@@DineshKumar-cs4gk I also did the same you did👍🏻
@arnobdas6365
@arnobdas6365 6 ай бұрын
Really good content.
@ai.mlvprasad
@ai.mlvprasad 6 ай бұрын
Tq very much
@umangsharma9423
@umangsharma9423 6 ай бұрын
Hi MLV, Great Video. I had a question why cant we use sumweight>=1000 it gives error I can't think of a case. Can you help? TIA
@Mohamed-Mahmoud8
@Mohamed-Mahmoud8 2 ай бұрын
Cause if all passengers weigh less than 1000 it will not return a name
@ssh0059
@ssh0059 6 ай бұрын
Thank you for the solution
@ai.mlvprasad
@ai.mlvprasad 6 ай бұрын
Welcome shilpa
@SaicharanErram
@SaicharanErram 7 ай бұрын
why are we using sum here ?
@SaicharanErram
@SaicharanErram 7 ай бұрын
resolved
@SaicharanErram
@SaicharanErram 7 ай бұрын
good job
@SaicharanErram
@SaicharanErram 7 ай бұрын
good job
@SaicharanErram
@SaicharanErram 7 ай бұрын
good job
@SaicharanErram
@SaicharanErram 7 ай бұрын
good job
@SaicharanErram
@SaicharanErram 7 ай бұрын
good job