Lec-60: SQL Queries and Subqueries (part-2) | 2nd Highest Salary | Nested Queries | DBMS

Поділитися
Вставка
  • Опубліковано 6 жов 2024

КОМЕНТАРІ • 532

  • @karnavpanchal3281
    @karnavpanchal3281 3 роки тому +127

    I found no teacher explainaing like you, not even canadian teachers! i am studying in canada and due to your videos my concepts are so clear that i can confidently answer the questions. Thanks a lot. JAI HIND!!!

  • @ShivAdiShakti108
    @ShivAdiShakti108 5 років тому +42

    Best Teacher! Selfless Work for all the Students. Its great to have teachers like you. :)

  • @AmandeepSingh-tc3fz
    @AmandeepSingh-tc3fz 5 років тому +20

    Wonderful. Very few teachers explain the logic.u r the one of them

  • @hemantshah5383
    @hemantshah5383 5 років тому +102

    Amazing explanation & so pleasant voice sir ji ❤️❤️❤️
    I pray to see 100k subscriber sooner bcoz you truely deserves

    • @GateSmashers
      @GateSmashers  5 років тому +12

      Thank You so much for the appreciation. Bless you. keep learning and sharing

  • @rahulmishra8535
    @rahulmishra8535 2 роки тому +14

    I am working as SQL developer/Analyst . Your teaching std. is really amazing sir.

  • @prajjwaltripathi2911
    @prajjwaltripathi2911 2 роки тому +7

    AMAZINGLY EXPLAINED.....I hesitated in solving query and group by questions...now I can tackle them confidently, thank you sir

  • @sumeetkaur7758
    @sumeetkaur7758 3 роки тому +5

    it is very helpful to understand SQL, Excellent way of explaining the things

  • @sulaimant5690
    @sulaimant5690 3 роки тому +45

    Watched the entire playList couple of days before my Interview, Guess what ?,
    The first interview question was "Write a query to find the Second Highest Salary? "
    Truly Great Content and Teaching Style,
    Thank you for the hard work.

  • @shikharupadhyay4284
    @shikharupadhyay4284 4 роки тому +14

    I am so impressed by your teaching ,that I have recommended your channel to all my peers and requested them to follow.
    May God bless you!

  • @debinaik5667
    @debinaik5667 5 років тому +5

    Boss, you are God gifted. Love to watch all your lecture. May God bless you forever.

  • @deepgandhi9235
    @deepgandhi9235 3 роки тому +5

    i like your flow of study ...by this we can easily understand that ..
    thank you so much

  • @suprakashbanerjee5291
    @suprakashbanerjee5291 4 роки тому +4

    thank you so much, sir. The way you explain things is so good. Thanks for being our DBMS Savior.

  • @dibyendubiswas1998
    @dibyendubiswas1998 4 роки тому +5

    I see all video in dbms and now concept is very clearly.
    Thank you very much sir, for those video.
    Love you lot...❤❤❤❤❤

  • @deepa8177
    @deepa8177 2 роки тому +2

    way of teaching is superb, explained step by step from scratch..great

  • @MYHPYWORLD
    @MYHPYWORLD 3 роки тому +1

    Best Teacher in You Tube for SQL as you have not just written these queries ,you have explained them properly.

  • @emanzara1676
    @emanzara1676 5 років тому +3

    V good way of teaching...u r such a God gifted teacher... Thanks

  • @hi.996
    @hi.996 Рік тому +5

    i usually dont comment . but your hardwork , determination and quality content forced me to comment .
    after all i thank you for making this whole playlist.

  • @comraza01
    @comraza01 2 роки тому +1

    Sir aap legend ho.....mai aapki dbms or SqL ki video one month se dekh rha hu.....aapki har lecture ki video fully samjh mai aarha h....sir love from Bihar.....

  • @shiblyaziz4528
    @shiblyaziz4528 5 років тому +6

    Just Awesome, Sir

  • @sureshallampalli6703
    @sureshallampalli6703 Рік тому

    He is incredible and so inspirational. i got a full clarity on the query, no one can explain like you sir, lecture is simple and crystal clear.

  • @SheikhShakir-jo1kp
    @SheikhShakir-jo1kp 5 років тому +4

    May Allah bless you...
    Awesome way of teaching..
    100000k likes for all ur lectures......
    From KASHMIR

  • @nayeemislam9479
    @nayeemislam9479 8 днів тому

    You are such a great teacher. Thank you for making my study more interesting Sir.

  • @budgetarena1984
    @budgetarena1984 2 роки тому

    Everywhere we can find saints in many forms. You are also a saint who teaching with very skilled. Amazing man. You are very smart looking teacher who speak like a charm.

  • @sajansekhu8785
    @sajansekhu8785 5 років тому

    aapki hr vedio main sir bahut kuch seekhne ko milta hai jo hmne master's main nhi sikha.....so thnkk u so much....may u achieve u r all dreams....i prey to god sir....thnkk u so much ji..🙏🙏🙏

  • @RAJ-qm2fi
    @RAJ-qm2fi 3 роки тому +3

    1 MILLION COMING SOON

  • @happycoding5163
    @happycoding5163 3 роки тому +1

    you are the best teacher and thanks alott sir for teaching in such a great way.....we want more videos from you..

  • @ankush_in_sync5998
    @ankush_in_sync5998 3 роки тому +1

    You deserve more followers and Subscribers. He explains the best. Thank you.

  • @fairystar4869
    @fairystar4869 3 роки тому +3

    JazakAllah sir

  • @satk4211
    @satk4211 5 років тому +4

    THANK YOU SO MUCH!!! This helped me so much with my assignment after searching endlessly on UA-cam.

  • @aditikhandelwal135
    @aditikhandelwal135 4 роки тому +1

    Amazing I don't think such variety are covered in any other UA-cam lectures 😯😯😯

  • @praveenrathod5573
    @praveenrathod5573 5 років тому +2

    salute sir wonderful explanation i was confused about sub-query, after watching this videos no more confusion

  • @mohammadhayatmohammadi5306
    @mohammadhayatmohammadi5306 Рік тому

    You are the best Teacher in CS faculty of programming side , thank you so much for helping people.

  • @nirajanandansamal6088
    @nirajanandansamal6088 Рік тому +2

    Your work is God level work.hats off sir

  • @PankajSingh-mk9wk
    @PankajSingh-mk9wk 4 роки тому

    Seriously Sir Commendable! i have learnt or saw various videos on query but the way you are explaining, Its marvelous! thanks for teaching us. God bless you and keep growing.

  • @ankitatripathi9743
    @ankitatripathi9743 5 років тому +1

    Really efficient effort by you Varun. good explanation again and try to provide physical class in our city..Noida .Thanks..You r the really the best faculty ,i must sAY

  • @bhushanwagh7192
    @bhushanwagh7192 5 років тому +1

    Bhai.. Kya jabardast explanation hain... Awesome

  • @nirjhariniparhi
    @nirjhariniparhi 3 роки тому +1

    No words to explain ur teaching skills....

  • @mukherjee22
    @mukherjee22 4 роки тому

    THANK YOU SO MUCH, Mr. Instructor for the concise yet brief lecture on SUBQUERIES,
    I was honestly perplexed beyond measure because I could not understand the underlying concept of subqueries from the online course that I'm taking off from Udemy,
    you sincerely have helped me and countless others with your systematic approach towards teaching us this topic to an exponential extent,
    THANK YOU SO MUCH!!!!!

  • @abhi9074470124
    @abhi9074470124 5 років тому +1

    Super Duper Explanation Thanks It is very much helpful

  • @appyapoorv8271
    @appyapoorv8271 3 роки тому +2

    Great explanations! just another approach, i dont know its feasible or not.
    select * from emp order by salary desc limit 1 offset 1;

  • @swapnatd
    @swapnatd Рік тому +1

    Very nice explanation and clear 👏👏👌

  • @anshupriya5199
    @anshupriya5199 5 років тому +1

    your way of teaching is really nice.......thanku so much sir

  • @robinbond0001
    @robinbond0001 5 років тому +3

    Awesome way of teaching...

  • @syedhujwerfoundation8949
    @syedhujwerfoundation8949 4 роки тому +1

    Amazing Explanation Sir! Thank You so Much.

  • @amitjha4007
    @amitjha4007 5 років тому +1

    Good job bro keep up your good work, this world need people like you.

  • @AnishaSharma-f5w
    @AnishaSharma-f5w 7 місяців тому

    sir u r the best teacher . aapne engineering bhot easy krdi hai

  • @karanhanda179
    @karanhanda179 5 років тому +1

    Sir u have nailed it .......u are a gem for us....I hope you will get a million subscribers soon

  • @preetimalik3565
    @preetimalik3565 5 років тому +2

    Sir your way of explaining things is very nice..

  • @sakijilan7908
    @sakijilan7908 2 роки тому

    This will Display the 2nd highest salary and person's Name.
    SELECT Name, Salary
    FROM Employee
    WHERE Salary=(SELECT MAX(Salary)
    FROM Employee
    WHERE Salary(SELECT MAX(Salary)
    FROM Employee));
    Thank you very much great lectures, and best teaching skills and great knowledge, Bless you and your family.

  • @renij1
    @renij1 5 років тому +9

    Dang! You are good. Would love to learn more from you. Hitting that subscribe button now :)

  • @palakgrover9925
    @palakgrover9925 Рік тому

    The way you teach is marvelous and explaining the concepts in a simpler manner is your innate ability, God Bless :)

  • @faranzafar8383
    @faranzafar8383 5 років тому +3

    brother u have great knowledge
    i want to share my statement to find first second and third and so on.......... in salaries or marks tables or anything else you want to seach
    statement:-
    select * from table_name
    order by column_name desc limit 1;
    we will find the higest value of the table with all details
    (limit 1 shows that we want to see the top of the row in a table)
    same like for second highest
    select * from table_name
    order by column_name desc limit 1,1:
    we will get the second highest value
    (limit 1,1 shows we want to see the second row except first row)
    for third higesh value
    select * from table_name
    order by column_name desc limit 2,1:
    we will get the third value
    (limit 2,1 show we want to see third row expect first two rows.....in this way you can see your desired row)

  • @himanshurawat5846
    @himanshurawat5846 5 років тому +2

    Bro you did great work god bless u and now i can say m yours fan the way you teach everyone can easily understood carry on bro

  • @harshyadav6097
    @harshyadav6097 3 роки тому

    Awesome teacher and way of teaching is mind blowing

  • @maryamtoto5969
    @maryamtoto5969 4 роки тому

    Buhat shukriya sir ji ap ne buhat acha samjaya ap mashaALLAH se hr topic ache se clear kr detey hai 😊😊😊

  • @muskan382
    @muskan382 3 роки тому

    Very superb way to teach and also helpful in learning

  • @ShivamSharma-ps3el
    @ShivamSharma-ps3el 5 років тому +3

    Vey well explained you really put all your effort. We can also use rownum function here.
    Select min(Sal) from (Select sal from Emp order by desc) where rownumb< 2;

    • @GateSmashers
      @GateSmashers  5 років тому

      Thank You..Love and blessings..yes we can do in this way also..good

    • @freelancer_gulshan
      @freelancer_gulshan 5 років тому

      but what if more than one employee taking the highest salary. this results again the first highest. m i rt?

  • @uttamsharma3511
    @uttamsharma3511 5 років тому +1

    Fantastic explanation Sir ❤️❤️❤️❤️
    Thank you Sir

  • @aishadessai9323
    @aishadessai9323 5 років тому +2

    Best explanation👌 God bless u😇

  • @alaminislam-fq9jc
    @alaminislam-fq9jc 2 роки тому

    Explanation system is just awesome sir,
    Love from Bangladesh

  • @Brsir999
    @Brsir999 6 років тому +1

    waw teaching ho to eisa...appriciate it.

  • @lawlightplayz4071
    @lawlightplayz4071 2 роки тому

    Wonderful explanation, good command over SQL Mashallah

  • @vartikasinghania9723
    @vartikasinghania9723 3 роки тому

    The way you teach is very nice .... I have started studying DBMS because of these amazing lectures.
    Thank you, sir :D

  • @ganeshbharte3579
    @ganeshbharte3579 5 років тому +3

    Amazing Tutorial, very easy and well explained. No.1 for SQL.

  • @VICKYKUMAR-jg8oi
    @VICKYKUMAR-jg8oi 9 місяців тому

    You are a real gem sir. I am fortunate to find such course on DBMS

  • @PriyankaSingh-ig2pc
    @PriyankaSingh-ig2pc 5 років тому

    great quality of knowledge sir. really helpful for students. thank you for sharing ur knowledge......

  • @abhishekupadhyay7261
    @abhishekupadhyay7261 4 роки тому

    Because of good explaination this topic is also not looking so complex,
    But than also we have to practice a bit to get a sharp grip on this topic....
    Thank you Sir ji

  • @makarsh29
    @makarsh29 5 місяців тому

    answer 1 can also be
    select salary from emp
    where salary <
    (select max(salary) from emp)
    order by salary desc
    limit 1;
    well explained bhai..

  • @Lofi_Ayesh4538
    @Lofi_Ayesh4538 4 роки тому

    Explanation was very helpful as I am doing my project on Mysql workbench.

  • @anasabbasi5449
    @anasabbasi5449 10 місяців тому

    What a brilliant method of teaching ❤❤❤

  • @deekshaadjj3787
    @deekshaadjj3787 4 роки тому +3

    Sir, you are truly amazing. I love your teachings. Thanks for such a goodwork

  • @girishbhargava6367
    @girishbhargava6367 3 роки тому

    Best explanation of this topic on youtube.

  • @sagarbadhe7179
    @sagarbadhe7179 4 роки тому

    Sir u r great sir this greate explanation sir.the way u r teaching..... Nobody can teach like this... Awesome... !!!

  • @fareehan1
    @fareehan1 2 роки тому

    God bless you. I Can't thankyou enough. Your explanation is so easy to follow.
    You are really gifted .

  • @debuvlogs20
    @debuvlogs20 4 роки тому

    Great video everything is clear and transperent easy to understand I hope your video give me good idea for better Programmer..Thanks please continue with more videos..

  • @anugrahsingh9204
    @anugrahsingh9204 3 роки тому

    Find your random video and now I'm learning from your video sir great explanation thanks u so much 🙏

  • @praveennehra3383
    @praveennehra3383 2 роки тому

    I like the way he teaches.....God Bless u.

  • @gou9199
    @gou9199 5 років тому +1

    Thankyou very neat and clear explanation

  • @NavdeepKaur-qd4jo
    @NavdeepKaur-qd4jo 3 роки тому

    Best way of teaching I have ever seen 🤞🤞👌👌👍👍

  • @manthanjoshi1553
    @manthanjoshi1553 4 роки тому

    thanx sir for the wonderful explanation

  • @panditsanjay7762
    @panditsanjay7762 4 роки тому

    Agar aaj k time k koi guru dronacharya h apne student k liye to vo aap ho sir ☺️☺️

  • @zigzag6293
    @zigzag6293 4 роки тому +1

    great explanation..plz upload videos regarding trigger,cursor n procedures..

  • @Bobby-mf6fw
    @Bobby-mf6fw 3 роки тому

    Before watching this video I was like no I can't understand these nested query.
    But now I m confident I can and I will.
    All thanx to u Sir👍

  • @RameshSharma-rs2hj
    @RameshSharma-rs2hj 10 місяців тому +1

    Thank you sir,
    Very nice explanation 🙂

  • @subhasundar9881
    @subhasundar9881 2 роки тому

    Thank you Brother. I had difficulty in understanding 'sub query', until I watched your video.

  • @anweshabhisek7549
    @anweshabhisek7549 4 роки тому

    Sir I just want to say u r awsm .. Keep it up sir . U don't know how it's helping others . ThanX a lot sir

  • @kushagrasahu8289
    @kushagrasahu8289 4 роки тому

    Tons of thanks. Explaining with such ease🙌

  • @mr.anorak6900
    @mr.anorak6900 3 роки тому

    Such a great explaination. 👍❤️
    Thank you 👍

  • @navjiwanhira3888
    @navjiwanhira3888 3 роки тому +1

    Very well explained difference between IN and =

  • @AkashGupta-nq8po
    @AkashGupta-nq8po 2 роки тому

    thanks for making this video u really help me to understand these things.

  • @nishanthdkini2144
    @nishanthdkini2144 2 роки тому

    Our college teacher should take the explanation from u sir, then she will learn how to teach students...
    u r our god sir...

  • @aimanmalik3974
    @aimanmalik3974 3 роки тому +3

    Respected Sir! your compiler construction series and sql series are amazing and i got 4.00 gpa in this course bcz of your effective way of teaching plz ap visual programming ki bi playlist bnao na

  • @kritikasharma9550
    @kritikasharma9550 5 років тому

    i watched more video on same topic bt its hard to understand ...then i watched your video nd nw my all concept are cleared..thank you so much sir

  • @MdMd-po6hx
    @MdMd-po6hx 4 роки тому

    salute you ustad ! awesome explanation, keep enhancing knowledge, love & respect from Chicago.

  • @harshalohana4958
    @harshalohana4958 3 роки тому

    we also can write like this way and it works also
    select max(sal) from emp where sal< (select max(sal) from emp);

  • @tubaimozumder8824
    @tubaimozumder8824 2 роки тому

    Sir, I have been following you for a little while and all I can say that Sir you're a wonderful and great teacher

  • @ankusnayak2453
    @ankusnayak2453 5 років тому

    Iss video ke bad kisi ko kohi doubt ho sakta hain kya.....great video sir...you helps a lot

  • @manikantaroyal777
    @manikantaroyal777 4 роки тому +6

    You're a legend..

  • @pravatkumar5696
    @pravatkumar5696 3 роки тому

    Really outstanding explanation just like spoon feeding ...

  • @AmitGupta-fd3zy
    @AmitGupta-fd3zy 3 роки тому

    pehle subquries se dar lagta tha........but ab khud same example ko try karne se, ek step aage gaya hu, baki or videos dekh k sekh jaunga.........thank u sir