Bro use this sub query to find nth max Price (n-1)...........select * from Products p1 where 1=(select count(distinct Price) from Products p2 where p2.Price>p1.Price );
@anbu.17g7 ай бұрын
can we write the query like this for finding the third maximum price of the products. select price from the products order by price desc llmit 2,1;
@vimala78302 жыл бұрын
Clear explanation sir thanks a lot ☺️☺️☺️
@QAFox2 жыл бұрын
Welcome :)
@gantaavinash1693 жыл бұрын
Thanks a lot sir for your tutorials, if possible please do on nodejs
@QAFox3 жыл бұрын
Sure Avinash :)
@informationadda758 Жыл бұрын
ossum explanation dude
@QAFox Жыл бұрын
Thank you :)
@LordSarcasticVloggerАй бұрын
Thanks😊
@purushotamsharma37102 жыл бұрын
sir, i really enjoyed your video. a request to you sir, can you please upload a single note for or video
@mathiassintal22372 жыл бұрын
select price from products order by price desc limit 1,1 would also result with the second highest price, right? Thank you very much for your tutorials!
@campeiangomes Жыл бұрын
great job
@QAFox Жыл бұрын
Thank you :)
@dushyant.june63 жыл бұрын
Sir what source are you using for these practice questions? Kindly provide me with the link please!!
@QAFox3 жыл бұрын
Go to that particular topic in W3SCHOOLS website and try.
@rahulk32092 жыл бұрын
Sir I think you forgot to upload about normalization topic
@QAFox2 жыл бұрын
Those topics will be covered later. I am working on other things now.
@filmflasheshq2 жыл бұрын
Sir we can also use LIMIT to retrieve 2nd, 3rd, etc max data
@filmflasheshq2 жыл бұрын
SELECT price AS 2nd_max_price FROM products ORDER BY price DESC LIMIT 1 , 1 ;
@QAFox2 жыл бұрын
Yeah another way to get the results.
@rayberlin80053 жыл бұрын
Sir, notes missing here.
@QAFox3 жыл бұрын
Thanks for letting me know. I have updated the description and provided the notes now.