Most Asked SQL interview questions and answers for Java Developers with examples | Code Decode

แชร์
ฝัง
  • เผยแพร่เมื่อ 6 ต.ค. 2024

ความคิดเห็น • 133

  • @vinaykumarjashtadhi3107
    @vinaykumarjashtadhi3107 3 ปีที่แล้ว +25

    Hi, I was not able to find the best query for finding the nth highest salary of an employee, but with this video I found it very simple to remember, thanks for this video. Also, please proceed further with other SQL questions you mentioned at the last.

    • @CodeDecode
      @CodeDecode  3 ปีที่แล้ว +1

      Thanks . Sure Vinay 🙂👍

    • @vengateshm2122
      @vengateshm2122 3 ปีที่แล้ว +1

      Pls check out row number concept. We can also do with that approach.

  • @sarthakpalsharma4501
    @sarthakpalsharma4501 3 ปีที่แล้ว +34

    Please upload further videos. It will increase the employment rate of India because your videos are gem.

    • @CodeDecode
      @CodeDecode  3 ปีที่แล้ว +6

      Thanks a ton Sarthak 🤣🤣. Sure we will upload more videos 👍👍.

    • @manojpatil2457
      @manojpatil2457 2 ปีที่แล้ว +2

      @@CodeDecode that cracked me up too 😂😂

    • @priteshbohrade8
      @priteshbohrade8 2 ปีที่แล้ว +2

      A gem comment..

  • @GamingPitchWithParth
    @GamingPitchWithParth 2 ปีที่แล้ว +3

    you are teaching in very good manner. loved your teaching style, keep uploading videos faslter ,it is helping a lot to me others
    thankyou.....

    • @CodeDecode
      @CodeDecode  2 ปีที่แล้ว

      Thanks for the nice words sagar

  • @ahmetyasarozer
    @ahmetyasarozer ปีที่แล้ว +3

    Hello. Thanks a lot for the videos. Cheers.
    Note: I guess there is a gaffe at 7:15: Indexes with more that one column are called "composite indexes", not "clustered indexes".

  • @shubhamraj2683
    @shubhamraj2683 3 ปีที่แล้ว +3

    The way you teach is superb.. the concepts i wasn't able to grab after learning for days, you explain it so effectively that I understand it in a single watch.

    • @CodeDecode
      @CodeDecode  3 ปีที่แล้ว

      Thanks a ton Shubham. It means a lot 🙂👍🙏🙏

  • @darkresonance1541
    @darkresonance1541 3 ปีที่แล้ว +6

    You Guys are awesome. It's day by day helping me to achieve my goal. Seriously, this channel is a gem and I've recommended it to my friends as well.
    I have one request, please make a video on real time scenario java interview questions. Like techno - managerial or client rounds mostly which will ask questions on scenario based.
    You're hell of a life & time saver. Bless you guys!!

    • @CodeDecode
      @CodeDecode  3 ปีที่แล้ว +3

      Thanks a ton🙂. This means a lot us. Yes we are about to create a video on real time scenerios that are asked in interviews. Thanks for the suggestion 👍👍

  • @bhavikjoshi1060
    @bhavikjoshi1060 2 ปีที่แล้ว +3

    Thank you for all hard work you put.
    Please cover triggers, partition, stored procedure and functions.

    • @CodeDecode
      @CodeDecode  2 ปีที่แล้ว

      sure bhavik we will try to cover it soon

  • @KumarGaurav-xDsoCH
    @KumarGaurav-xDsoCH 3 ปีที่แล้ว +2

    First of all thanks a ton on starting this SQL series. I am expecting to refer only your videos, to brush up these topics. Waiting impatiently for next video 😁
    Please help me in implementing Spring Security with OAuth 2 and JWT. Any references having flow the way you explain, will be helpful...!

    • @CodeDecode
      @CodeDecode  3 ปีที่แล้ว +1

      These are very nice topics. Thanks for the suggestion👍🙂. We will upload these in security series 👍👍

  • @rohinikumari4
    @rohinikumari4 2 ปีที่แล้ว +5

    Hi I loved this video sooooooooooooooo much!!!! Please please upload the second part as I've been waiting for this kinda stuff for a long time.

    • @CodeDecode
      @CodeDecode  2 ปีที่แล้ว +1

      Sure, we will upload it soon. Thanks 🙂

  • @rahulsolanki__
    @rahulsolanki__ 3 ปีที่แล้ว +1

    Nice approach, But what if there are same salary for 2 employees ,
    1, Ram , 12000
    2, Aksha , 15000
    3, Manish, 12000
    4. Ritu , 10000
    5, Rohit, 8000
    Here third highest should be 10,000 ie 4th row

    • @CodeDecode
      @CodeDecode  3 ปีที่แล้ว

      No, when ever u sort in descending order, no one expects that. Even if they does, u can use distinct. Right?

    • @alldemb9496
      @alldemb9496 2 ปีที่แล้ว

      select * from employeee where salary =(select distinct salary from employee order by salary desc limit 0,1);

  • @sidhanshuraghuvanshi1
    @sidhanshuraghuvanshi1 7 หลายเดือนก่อน +1

    If we have same salary then we should use GROUP BY Sal . It will handle duplicate Sal conditions also.

  • @karthikeyanrm3446
    @karthikeyanrm3446 3 ปีที่แล้ว +3

    Yes please continue this SQL series - really good. If possible do resume Microservices section - it's pending for more than 2 months 👍

    • @CodeDecode
      @CodeDecode  2 ปีที่แล้ว +1

      Yes karthikeyan due to time crunch and festive season it is getting delayed we will surely upload it soon...

  • @chaitalijuare6135
    @chaitalijuare6135 3 ปีที่แล้ว +2

    Nice video mam. Please add more such videos on SQL. Will be waiting for your videos.Thanks for your efforts.

    • @CodeDecode
      @CodeDecode  3 ปีที่แล้ว

      Sure Chaitali 👍🙂

  • @kanhiyajoshi5346
    @kanhiyajoshi5346 ปีที่แล้ว +1

    because of your channel , i am getting all interviews cleared.

    • @CodeDecode
      @CodeDecode  ปีที่แล้ว

      Many many congratulations on clearing your interviews Kanhiya 🎉🎉🎉🎊🎊. You rock👍. Keep learning keep shining ⭐✨⭐✨ Man

  • @harisharan4188
    @harisharan4188 3 ปีที่แล้ว +2

    Thanks for the Video, For the query to find Nth highest salary, I believe LIMIT will not work in all the DB's. Could you please explain using TOP too and is there any other approach too for the same?

    • @CodeDecode
      @CodeDecode  3 ปีที่แล้ว

      Ok will give more such options in next video 👍👍

  • @maruthikumar6811
    @maruthikumar6811 3 ปีที่แล้ว +1

    First of all thanks a ton on starting this SQL series. I'm expecting video on angular interview questions, Please try to do a video on angular interview questions

    • @CodeDecode
      @CodeDecode  3 ปีที่แล้ว

      Sure we are planning to start front end iqs too 🙂👍

  • @jeevansaimanikanta782
    @jeevansaimanikanta782 3 ปีที่แล้ว +2

    It was awesome explanation. Please do provide still more frequently asked sql questions.

    • @CodeDecode
      @CodeDecode  3 ปีที่แล้ว

      Sure Jeevansai 👍. Will do that 👍🙂

  • @rudrapratapsingh213
    @rudrapratapsingh213 2 ปีที่แล้ว +1

    Hi, I was not able to find the best query for finding the duplicate records in a table, also to show how many times all the columns have been repeatedly stored separately , can you create a video in which there would be much advance questions?
    Also I randomly found your channel and it's very helpful, this time I am looking to switch the job and by god's grace I found your channel and videos are very helpful to me.

    • @CodeDecode
      @CodeDecode  2 ปีที่แล้ว

      Thanks Rudra, yrs nice topics 👍will create video on this topic 🙂👍

  • @LT-js2yk
    @LT-js2yk 2 ปีที่แล้ว

    Great video! one correction though.. Clustered indexes are indexes whose order of the rows in the data pages corresponds to the order of the rows in the index.

  • @akshaykubade4210
    @akshaykubade4210 3 ปีที่แล้ว +1

    yes, plz mam make more videos on further topics of sql asap. It will be so helpful... and thanks..

  • @ahmadazeem7785
    @ahmadazeem7785 2 ปีที่แล้ว +1

    You explain each and every concept so well.Thank you so much

  • @anusuyadevi6256
    @anusuyadevi6256 3 ปีที่แล้ว +1

    First I need to say thanks for such awesome videos in ur channel.Thanks a lot ..Please proceed to create more videos about SQL

    • @CodeDecode
      @CodeDecode  3 ปีที่แล้ว

      Sure wr will do that👍🙂

  • @vengateshm2122
    @vengateshm2122 3 ปีที่แล้ว +1

    Thanks for the great effort. Pls put videos covering the question mentioned in the last section of the video.

  • @shikshadubey4082
    @shikshadubey4082 2 ปีที่แล้ว +1

    Please add more series on most asked SQL interview questions.

    • @CodeDecode
      @CodeDecode  2 ปีที่แล้ว +1

      sure shiksha you'll see next part in this week only

  • @srujan7350
    @srujan7350 2 ปีที่แล้ว +1

    It is very good video to check out our Knowledge after learning. Thanks to #CodeDecode #Thanks

    • @CodeDecode
      @CodeDecode  2 ปีที่แล้ว

      you're welcome srujan

  • @manoj47parmar
    @manoj47parmar 3 ปีที่แล้ว +1

    Thanks for providing such video this is real helping me lot in interview preparation. Please create video on NOSQL db like: Cassandra,MongoDB also.

    • @CodeDecode
      @CodeDecode  3 ปีที่แล้ว

      Sure Manoj, we are planning to do that👍👍

  • @vaibhavnagrale8550
    @vaibhavnagrale8550 2 ปีที่แล้ว +1

    Ma'am really appreciate your hardwork and efforts .. 👍
    Please make more video regarding this topic ..

    • @CodeDecode
      @CodeDecode  2 ปีที่แล้ว

      Sure Vaibhav, we are planning next part soon 👍🙂

  • @dpkpk1573
    @dpkpk1573 3 ปีที่แล้ว +1

    Thanks for the video....Nice one, Yes please make a continuation of this topic.....

    • @CodeDecode
      @CodeDecode  3 ปีที่แล้ว +1

      Sure we will upload more 👍👍. Thanks 🙂

  • @shruthishru3553
    @shruthishru3553 2 ปีที่แล้ว +2

    wonderful video 😍..very easily understandable

  • @sachintambeshwar9712
    @sachintambeshwar9712 2 ปีที่แล้ว +1

    Amazing video to the point and various approaches to solve also 👍👍

  • @saugatadey1248
    @saugatadey1248 3 ปีที่แล้ว +1

    Yes we want more topics to cover...plss make a video...eagerly waiting.

    • @CodeDecode
      @CodeDecode  3 ปีที่แล้ว +1

      Sure Saugata, we will do that 👍👍

  • @AllinOne-et2on
    @AllinOne-et2on 2 ปีที่แล้ว +1

    Please upload few more videos on SQL. Eagerly waiting for this videos

    • @CodeDecode
      @CodeDecode  2 ปีที่แล้ว

      Sure we will create it soon.....

  • @sunitapatil7394
    @sunitapatil7394 2 ปีที่แล้ว +1

    Please cover remaining....you are the best teacher. 👌

    • @CodeDecode
      @CodeDecode  2 ปีที่แล้ว

      Thanks Sunita. Sure we will do that 🙂👍

  • @Priyankapatel-zm2vq
    @Priyankapatel-zm2vq 3 หลายเดือนก่อน +1

    Your explanation is really good ❤❤

    • @CodeDecode
      @CodeDecode  3 หลายเดือนก่อน

      Thanks

  • @ravindracharyvadyarapu
    @ravindracharyvadyarapu 2 ปีที่แล้ว +1

    Waiting for next video ... kindly upload more videos on SQL

    • @CodeDecode
      @CodeDecode  2 ปีที่แล้ว

      Sure ravindra we will upload the next part soon

  • @AllinOne-et2on
    @AllinOne-et2on 2 ปีที่แล้ว +1

    Truely you guys are producing an awesome content which help to crack interview easily.Till now did a great job and keep going ❤️❤️

    • @CodeDecode
      @CodeDecode  2 ปีที่แล้ว

      Thanks a ton 🙂👍

  • @jyothsnagangarapu1096
    @jyothsnagangarapu1096 2 ปีที่แล้ว +1

    super video ,could please create another video for other questions in sql

    • @CodeDecode
      @CodeDecode  2 ปีที่แล้ว +1

      sure jona we will upload next video this week

  • @DivyaMahiChennai
    @DivyaMahiChennai ปีที่แล้ว +1

    Ur video’s are excellent very useful 100% Please upload more videos

    • @CodeDecode
      @CodeDecode  ปีที่แล้ว

      Thanks 🙂🙂 , sure 👍👍

  • @neerajagarwal3176
    @neerajagarwal3176 3 ปีที่แล้ว +1

    Please upload a videos for tuning of SQL queries.

    • @CodeDecode
      @CodeDecode  3 ปีที่แล้ว

      Sure. It's a very useful topic. We will do that👍👍

  • @tejachowdary309
    @tejachowdary309 2 ปีที่แล้ว +1

    Please add more of SQL queries for interview

    • @CodeDecode
      @CodeDecode  2 ปีที่แล้ว

      Sure we will create more videos on this

  • @pritikumari-n7o1h
    @pritikumari-n7o1h 7 หลายเดือนก่อน

    Hi, This is the wrong statement "Indexes with more than one column are called Clustered indexes". It is the case of the "composite index.".You can have only one clustered index in one table, but you can have one clustered index on multiple columns, and that type of index is called a composite index.

  • @sarvan5002
    @sarvan5002 2 ปีที่แล้ว

    I expected few more SQL questions in this video, but it covered only two. if you can add more in ur future videos.

    • @CodeDecode
      @CodeDecode  2 ปีที่แล้ว

      sure we will add more

  • @priyankapaul5620
    @priyankapaul5620 2 ปีที่แล้ว

    Plz make vedio on pl/sql stored procedure interview questions

  • @kudumulasivaramakrishnared6379
    @kudumulasivaramakrishnared6379 3 ปีที่แล้ว +1

    Please do a video on tricky string interview questions

  • @amitthakur-yo6xw
    @amitthakur-yo6xw 2 ปีที่แล้ว +1

    Please make more videos on sql interview questions Mam

    • @CodeDecode
      @CodeDecode  2 ปีที่แล้ว

      Sure amit we will create it soon

  • @sushantsharma687
    @sushantsharma687 3 ปีที่แล้ว +1

    Please create a video on some data structures questions

    • @CodeDecode
      @CodeDecode  3 ปีที่แล้ว +1

      Sure Sushant 👍

  • @shylashreec388
    @shylashreec388 2 ปีที่แล้ว +1

    Please upload more videos on SQL.

    • @CodeDecode
      @CodeDecode  2 ปีที่แล้ว

      Sure shylashree we will upload it soon

  • @VLearnAutomationLabs
    @VLearnAutomationLabs 2 ปีที่แล้ว +1

    pl cover more ql interview questions and upload a video will be useful for us

    • @CodeDecode
      @CodeDecode  2 ปีที่แล้ว

      Yes it's in queue 🙂👍

  • @sudhanshuk.2627
    @sudhanshuk.2627 3 ปีที่แล้ว +1

    Mam please Cover more questions on SQL

    • @CodeDecode
      @CodeDecode  3 ปีที่แล้ว

      sure sudhanshu we will cover it soon

  • @ayyasamys1011
    @ayyasamys1011 3 ปีที่แล้ว +1

    Appreciate your work..
    Can you please upload a video for apache shiro authorization using dB tables and spring boot ?
    It will be very helpful. There is no proper examples found in google

  • @priyankasundar3497
    @priyankasundar3497 ปีที่แล้ว +1

    We more such fine tune and best practices in SQL

    • @CodeDecode
      @CodeDecode  ปีที่แล้ว

      Sure Priyanka 👍

  • @chaitutom5789
    @chaitutom5789 3 ปีที่แล้ว

    Can u do one video on ajax calls jdbc drivers using java client and serverside validations

  • @AmitSingh-tk1il
    @AmitSingh-tk1il 3 ปีที่แล้ว +1

    Awesome question collection

    • @CodeDecode
      @CodeDecode  3 ปีที่แล้ว +1

      Thanks Amit 👍🙂

  • @LaxmiKitchen
    @LaxmiKitchen 3 ปีที่แล้ว

    Hi ,kindly cover other topics also and upload the videos very useful

    • @CodeDecode
      @CodeDecode  2 ปีที่แล้ว

      sure laxmi we will cover it soon

  • @vikassontakke4403
    @vikassontakke4403 ปีที่แล้ว

    Indexes are stored outside the table na?? Then how they can be deleted after dropping a table

  • @mohitsoni2919
    @mohitsoni2919 2 ปีที่แล้ว +1

    Code decode is the best

    • @CodeDecode
      @CodeDecode  2 ปีที่แล้ว

      Thanks Mohit🙂👍

  • @rakeshkachhadiya
    @rakeshkachhadiya ปีที่แล้ว +1

    Well explained.

  • @qa8355
    @qa8355 3 ปีที่แล้ว +1

    Well explained 👍👍

  • @bhavinmajethia7070
    @bhavinmajethia7070 ปีที่แล้ว +1

    keep up the great work!

  • @chakradharchakri7827
    @chakradharchakri7827 3 ปีที่แล้ว +1

    Part 2 or more videos from SQL

    • @CodeDecode
      @CodeDecode  3 ปีที่แล้ว

      Sure 👍 we will do that🙂👍

  • @GrowwWithTime
    @GrowwWithTime 2 ปีที่แล้ว +1

    which editor you are using

    • @CodeDecode
      @CodeDecode  2 ปีที่แล้ว

      IDE for sql you mean?

  • @swapniltravels
    @swapniltravels 3 ปีที่แล้ว +1

    mam create more videos on sql pleaseeee

    • @CodeDecode
      @CodeDecode  3 ปีที่แล้ว

      Sure Swapnil 👍 wr will do today🙂

  • @sreejak6776
    @sreejak6776 3 ปีที่แล้ว +1

    Tnx for the video

  • @Jagdalekiran
    @Jagdalekiran 12 วันที่ผ่านมา

    Love your voice ❤

  • @MohitKhare
    @MohitKhare ปีที่แล้ว +1

    thanks for the video.

  • @humaripragati
    @humaripragati 2 ปีที่แล้ว

    One correction-It is not possible to create an index on a view

  • @yashyadav5605
    @yashyadav5605 ปีที่แล้ว

    For third highest salary
    What if highest sal is get repeated?

  • @naleenyadav
    @naleenyadav 2 ปีที่แล้ว +1

    You are awesome..

    • @CodeDecode
      @CodeDecode  2 ปีที่แล้ว

      Thanks Naleen 🙂👍

  • @sivaramakrishna2602
    @sivaramakrishna2602 2 ปีที่แล้ว

    What if there are duplicate salaries ?

  • @personxyz1840
    @personxyz1840 2 ปีที่แล้ว +1

    Is this mysql?