SQL - Part 60 - Sub Query (Single Row Sub Query explained by solving different problems)

  Рет қаралды 20,012

QAFox

QAFox

Күн бұрын

Пікірлер: 25
@sudipsen3677
@sudipsen3677 Жыл бұрын
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.17g
@anbu.17g 7 ай бұрын
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;
@vimala7830
@vimala7830 2 жыл бұрын
Clear explanation sir thanks a lot ☺️☺️☺️
@QAFox
@QAFox 2 жыл бұрын
Welcome :)
@gantaavinash169
@gantaavinash169 3 жыл бұрын
Thanks a lot sir for your tutorials, if possible please do on nodejs
@QAFox
@QAFox 3 жыл бұрын
Sure Avinash :)
@informationadda758
@informationadda758 Жыл бұрын
ossum explanation dude
@QAFox
@QAFox Жыл бұрын
Thank you :)
@LordSarcasticVlogger
@LordSarcasticVlogger Ай бұрын
Thanks😊
@purushotamsharma3710
@purushotamsharma3710 2 жыл бұрын
sir, i really enjoyed your video. a request to you sir, can you please upload a single note for or video
@mathiassintal2237
@mathiassintal2237 2 жыл бұрын
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
@campeiangomes Жыл бұрын
great job
@QAFox
@QAFox Жыл бұрын
Thank you :)
@dushyant.june6
@dushyant.june6 3 жыл бұрын
Sir what source are you using for these practice questions? Kindly provide me with the link please!!
@QAFox
@QAFox 3 жыл бұрын
Go to that particular topic in W3SCHOOLS website and try.
@rahulk3209
@rahulk3209 2 жыл бұрын
Sir I think you forgot to upload about normalization topic
@QAFox
@QAFox 2 жыл бұрын
Those topics will be covered later. I am working on other things now.
@filmflasheshq
@filmflasheshq 2 жыл бұрын
Sir we can also use LIMIT to retrieve 2nd, 3rd, etc max data
@filmflasheshq
@filmflasheshq 2 жыл бұрын
SELECT price AS 2nd_max_price FROM products ORDER BY price DESC LIMIT 1 , 1 ;
@QAFox
@QAFox 2 жыл бұрын
Yeah another way to get the results.
@rayberlin8005
@rayberlin8005 3 жыл бұрын
Sir, notes missing here.
@QAFox
@QAFox 3 жыл бұрын
Thanks for letting me know. I have updated the description and provided the notes now.
@anjalinayak1001
@anjalinayak1001 2 жыл бұрын
Thank you sir
@farihaaskar6053
@farihaaskar6053 Жыл бұрын
can you be my sql tutor, ill pay u
@QAFox
@QAFox Жыл бұрын
Sorry, not getting time.
SQL - Part 61 - In Operator
8:41
QAFox
Рет қаралды 11 М.
UFC 308 : Уиттакер VS Чимаев
01:54
Setanta Sports UFC
Рет қаралды 664 М.
How to do Subqueries in SQL with Examples
8:20
Becoming a Data Scientist
Рет қаралды 172 М.
Learn GROUP BY vs PARTITION BY in SQL
14:03
Anthony Smoak
Рет қаралды 38 М.
SQL - Part 79 - Case, When, Then and End Keywords
22:38
QAFox
Рет қаралды 13 М.
SQL - Part 63 - Using Any Operator in Multi Row Sub Query
13:19
SQL Window Functions in 10 Minutes
10:13
Colt Steele
Рет қаралды 83 М.
Oracle SubQueries Part - 1 by Dinesh
23:57
Durga Software Solutions
Рет қаралды 76 М.
UFC 308 : Уиттакер VS Чимаев
01:54
Setanta Sports UFC
Рет қаралды 664 М.