Top 25 SQL Interview Questions and Answers(The BEST SQL Interview Questions)

Поделиться
HTML-код
  • Опубликовано: 9 фев 2025

Комментарии • 641

  • @priyankadevi-zl9jx
    @priyankadevi-zl9jx 3 года назад +82

    techTFQ - the main difference between delete and truncate statements besides removing the data from the table, truncate resets the id to 0 whereas delete doesn't do that. let's say if a table has 100 records. if you use delete statement and delete all 100 records and try to insert a new record. Your new record will have the id starting from 101 whereas with truncate it will start from 1. I think this isn't on your differences. Basically, truncate removes the memory allocation along with the data whereas delete doesn't.
    Thanks!

  • @igloo211
    @igloo211 Год назад +72

    Im in this field and I can tell you that typically the people that ask you these questions don’t know the answers until they looked them up to hit you with them during the interview

    • @manikantashet5921
      @manikantashet5921 2 месяца назад +1

      exactly, many actually don't. they wouldn't even recognize other approaches used while solving questions. sadly thats what most candidates have to deal with.

  • @gparvez6695
    @gparvez6695 3 года назад +70

    You are right about this questions. My recent interview with one of the MNC in France asked few of this questions.
    here are the questions that I was asked.
    1. Do you know window functions? Can you name few?
    2. Have you ever used CTE table?
    3. Diffrence btw where, Having , Group by.

    • @techTFQ
      @techTFQ  3 года назад +7

      Thank you for sharing these parvez.. it’s good to know

    • @TheVishalrockstar
      @TheVishalrockstar 3 года назад +1

      hi buddy can u help me to search good company

    • @suneetha11697
      @suneetha11697 2 года назад +1

      Thanks

  • @mu.abdelhamid
    @mu.abdelhamid 2 года назад +1

    Thanks!

  • @dany21tr
    @dany21tr 9 месяцев назад +25

    "good question you can check the answer in my blog, next question oh you can definitely check the answer in my blog"

  • @DarrellWolfe
    @DarrellWolfe Год назад +15

    What I have found fascinating about learning SQL is this: After doing a LOT of queries to the database with Microsoft Excel Power Query function, I came to SQL understanding almost all the concepts already and I only needed to learn the syntax. I would say I could answer about half these questions and I'm only three weeks into SQL but a year and a half into Power Query.
    This was a really helpful video! I'll check out the blog. 🎉🎉🎉

  • @devendraraghuwanshi3136
    @devendraraghuwanshi3136 3 года назад +21

    From Madhya Pradesh, !!May the grace of Mahakal always be upon you!! TFQ Thanking for helping people to get in IT at no cost, really your teaching style and content is priceless ,, Thank you for offering Data analyst skills FREE

    • @techTFQ
      @techTFQ  3 года назад +3

      Thank you for the blessings buddy 🙏🏼🙏🏼
      Happy to know you liked it

  • @HenrryWith2Rs
    @HenrryWith2Rs 2 года назад +5

    I’m going to your blog and I respect your hustle, but ITS HILARIOUS that most of your answers on the video are “yeah just check my blog”

  • @SagarKumar-db2xy
    @SagarKumar-db2xy 3 года назад +13

    This was definitely Helpful. As a fresher we r often confused on what and how much to study.. Please make few videos on Stored Procedures and Functions as well. Thank you for everything you are doing.

    • @techTFQ
      @techTFQ  3 года назад +1

      Your welcome bro.. glad this helps

    • @chanelbalfour5258
      @chanelbalfour5258 2 месяца назад

      Where can I find the blog

  • @santoshsable1
    @santoshsable1 3 года назад +10

    I am a beginner in SQL and want to know if you will be creating any learning videos for absolute beginners. I like the way you teach. Looking forward for videos on SQL basics.

    • @techTFQ
      @techTFQ  3 года назад +2

      Thank you for liking my contents and yes I plan to make a complete SQL tutorial series covering all SQL concepts soon

    • @bhaskarkotini4894
      @bhaskarkotini4894 3 года назад +1

      @@techTFQ even I am waiting for your SQL complete video series

    • @techTFQ
      @techTFQ  3 года назад

      Thank you 🙏🏼

  • @sabhrang4013
    @sabhrang4013 3 года назад +2

    I am very new to SQL. I have been studying for less than two months.Your videos are so easy to follow. Good command on English language. Keep up the good work. I will be watching more often. Thank you.

    • @techTFQ
      @techTFQ  3 года назад +2

      Awesome Sabhrang and thank you for liking my contents ☺️
      Happy to read this comment

  • @dattatrayarathi1014
    @dattatrayarathi1014 2 года назад +1

    Thank you for all details information 🙏🙏

    • @techTFQ
      @techTFQ  2 года назад

      Your welcome 🙏🏼

  • @p_anjali_codes
    @p_anjali_codes 2 года назад +4

    Thank you for coming up with this video. It helped me to get a glance at what to expect in interviews.

  • @enshk79
    @enshk79 2 года назад +7

    You're my SQL HERO, Taufiq!! Thank you for everything you do. You've helped my understanding IMMENSELY.
    So grateful for you!

  • @giovannymartinez1147
    @giovannymartinez1147 2 года назад +2

    This video is gold, thanks bro!

    • @techTFQ
      @techTFQ  2 года назад

      Glad you liked it buddy

  • @healthboostup44
    @healthboostup44 2 года назад +1

    Reallly so helpful and so clear

    • @techTFQ
      @techTFQ  2 года назад

      Glad it was helpful!

  • @gparvez6695
    @gparvez6695 3 года назад +1

    This video is very helpful and thank you for the blog aswell.

    • @techTFQ
      @techTFQ  3 года назад +1

      Glad it was helpful!

    • @maruthimadhu2250
      @maruthimadhu2250 3 года назад

      Could you please share the blog link

  • @ft_peakhd2921
    @ft_peakhd2921 2 года назад +31

    Hi Taufiq,
    Small change for question 11,
    In mYSQL you could even write it as
    Select substring_index(full name,' ',1) from table_name this will give you the required o/p.
    This query makes it simple to understand and gives the result much faster .

  • @akshaykumarsingh9770
    @akshaykumarsingh9770 3 года назад +6

    You are doing great job Thowfiq.
    And I mean it.
    I'll tell all of my students to follow you. I have been following you for a while and I got you and your work.
    Very strong, real and tough content you provide. That's awesome.

    • @techTFQ
      @techTFQ  3 года назад +1

      Thank you Akshay for such kind words 🙏🏼
      Truly appreciate the support ☺️

  • @balajivijaykumargoli3114
    @balajivijaykumargoli3114 Год назад +1

    Really hats off to you Sir. Very patiently and explained with detailed information .

  • @simranbanwait
    @simranbanwait 2 года назад +2

    taufiq bhai thankyou so much

    • @techTFQ
      @techTFQ  2 года назад +1

      Your welcome buddy

  • @minalwaman8629
    @minalwaman8629 2 года назад +1

    Thankyou very much.. its really helpful ..

    • @techTFQ
      @techTFQ  2 года назад

      Glad you liked it

  • @shawnmendoza3321
    @shawnmendoza3321 3 года назад +1

    Loved this ❤ Just watched.. Thanks

    • @techTFQ
      @techTFQ  3 года назад

      Thank you Shawn 🙏🏼

  • @Freakouts_and_found_Insane
    @Freakouts_and_found_Insane 3 года назад +1

    Best video I have ever seen on SQL ....🙏👌

    • @techTFQ
      @techTFQ  3 года назад

      Thank you Rushikesh 🙏🏼
      Glad you liked it ..

  • @anuragbawankar685
    @anuragbawankar685 2 года назад +1

    Thanks a lot Sir !!!

    • @techTFQ
      @techTFQ  2 года назад

      Most welcome!

  • @seenamgoel6019
    @seenamgoel6019 2 года назад +1

    Thankyou so much @sir 😇

    • @techTFQ
      @techTFQ  2 года назад +1

      your welcome :)

  • @qwesence1
    @qwesence1 5 месяцев назад

    Thank you! This is a big help. Thanks for breaking it down

  • @adarshsharma356
    @adarshsharma356 2 года назад +1

    Thank you so much sir ❤️☺️ really helpful .. i appreciate your hard work .. u did a great job .. your blog is just awesome 👍😎😎❤️

    • @techTFQ
      @techTFQ  2 года назад

      Thank you Adarsh. glad you liked it :)

  • @rameshchavda4117
    @rameshchavda4117 3 года назад +1

    what a perfect explanation alongwith cool mind , many things learned from u like sql

    • @techTFQ
      @techTFQ  3 года назад

      Glad to hear that! Thank you Ramesh :)

  • @hopecelebre3083
    @hopecelebre3083 2 года назад

    Spot on! You’re videos are very reliable! ❤❤

  • @krishnabathula4104
    @krishnabathula4104 3 года назад +1

    You are helping to all SQL folks alot by making these kind videos as well as your blog which are having great contents. I can not thank you enough. 😊🙏🏾

    • @techTFQ
      @techTFQ  3 года назад +1

      Thank you Krishna :)
      I am glad this helped 🙏

    • @krishnabathula4104
      @krishnabathula4104 3 года назад +1

      @@techTFQ pleasure is mine sir.

  • @buvaneshb423
    @buvaneshb423 3 года назад +1

    thank you for the wonderful information

    • @techTFQ
      @techTFQ  3 года назад

      Your welcome 🙏🏼

  • @dimasdebyolyy7336
    @dimasdebyolyy7336 2 года назад +1

    It is soooo useful video. Thank you a lot

    • @techTFQ
      @techTFQ  2 года назад

      glad you liked it

  • @RamzanAnsari-eo4hs
    @RamzanAnsari-eo4hs 11 месяцев назад

    A few months ago I had decided to learn sql to prepared for the interview and to unskilled myself after searching through out the day to confirm who RUclipsr video best of me and unfortunately came across to taufiq sir videos and it's one of my beat decision to choose your RUclips channel. Thank you taufiq sir❤

  • @9242224526
    @9242224526 2 года назад +1

    Thanks for your time and Knowledge sharing.Your videos are very much helpful for serious learners.

    • @techTFQ
      @techTFQ  2 года назад

      glad this helped

  • @shaikusman536
    @shaikusman536 3 года назад +1

    Very well and detailed explaination toufiq......THnaks for your Efforts and Blog....Kep it up brother...

    • @techTFQ
      @techTFQ  3 года назад

      Thank you buddy 🙏🏼

  • @abhisheksinghrajput2611
    @abhisheksinghrajput2611 3 года назад +10

    It is very healpful for us.

    • @techTFQ
      @techTFQ  3 года назад

      Glad to hear this bro ..

    • @naveensriram9866
      @naveensriram9866 2 года назад +1

      @@techTFQ how to take course from you 😊

  • @tonyjinca
    @tonyjinca 3 года назад +1

    Thank you Sir, I love your helpful videos!

    • @techTFQ
      @techTFQ  3 года назад

      Your welcome bro
      Glad you like them

  • @narapinn4662
    @narapinn4662 2 года назад +2

    Good explanation👌👌

    • @techTFQ
      @techTFQ  2 года назад

      Thank you Nara

  • @martinfernandezcean
    @martinfernandezcean Год назад

    Your content is great and very very helpful. Thanks from Paraguay

  • @merlinevinter3766
    @merlinevinter3766 Год назад

    Thanks a lot for your Videos on SQL!!!

  • @PoojaaDipakPawar
    @PoojaaDipakPawar Год назад

    Great video sir. Thank you so much. 😊

  • @kingstonteffyroy
    @kingstonteffyroy Год назад +1

    Great Work!!

  • @nelsin11
    @nelsin11 7 месяцев назад

    SQL in different sql versions is something I appreciate on your blog. 👍

  • @robalarcon
    @robalarcon Год назад

    Thank you for the video and the blog post, I did not remember that Triggers are a thing I haven't used one in a decade 😅

  • @pio024
    @pio024 2 года назад +2

    thanks very much for creating this video and even someone like myself with 20 years of Oracle Experience found it very useful and was asked so many of these questions which have been mentioned in this video when I was attending interviews in the UK, so would recommend to watch it before your interview!

    • @techTFQ
      @techTFQ  2 года назад +2

      I am so glad that even an experience professional like you too found this helpful 🙏🏼🙏🏼
      All the best with your interview 👍

    • @johnetim5274
      @johnetim5274 2 года назад +1

      Nice... Someone with minimal IQ like me is really loving the comments.. I crave to understand sql at 56years old despite some of the complexities in learning code et al. I CAN DO IT.

  • @shikhavarma4049
    @shikhavarma4049 3 года назад +1

    It is much needed for me thanks

    • @techTFQ
      @techTFQ  3 года назад

      Your welcome Shikha :)
      Very happy to know this helps you..

  • @aadarshchaudhari3957
    @aadarshchaudhari3957 3 месяца назад

    Thank you Bro your videos is very helpful.

  • @chrisumali9841
    @chrisumali9841 2 года назад

    Thanks for the demo and info, have a great day

  • @NeverStopLearning56
    @NeverStopLearning56 3 года назад +1

    Very informative , Thank you brother

    • @techTFQ
      @techTFQ  3 года назад

      Your welcome bro 🙏🏼

  • @chithrac9600
    @chithrac9600 2 года назад +4

    Thank you. Those are very good questions and you have explained them very well. Great tutorials. Definitely would be helpful for everyone.

    • @techTFQ
      @techTFQ  2 года назад

      Glad you liked it

  • @karthikbs8457
    @karthikbs8457 2 года назад

    Thank you so much for this video.

  • @bumblebee2012able
    @bumblebee2012able 3 года назад +8

    Thank you, your video helped me a lot, If yes, can you please make a video on how to improve query performance, again thanks for all of your time so far.

    • @techTFQ
      @techTFQ  3 года назад +3

      glad it helped and noted on the request

  • @LAKSHITBHATNAGAR
    @LAKSHITBHATNAGAR 2 года назад +8

    Hi Taufiq , Thank you for all the videos on SQL and Python .YT also helped me found this gem channel and now I am preparing for my upcoming interview for an IT senior analyst from your channel .My SQL fundamental has improved in a week .I hope to learn from channel through my Data engineering and Business analytics journey .Thanks again for the awesome content .Appreciate your great work to the people .

  • @kasperamkumar5489
    @kasperamkumar5489 2 года назад +1

    recommended video 👍👍👍👍

    • @techTFQ
      @techTFQ  2 года назад

      Thank you 🙏🏼

  • @deepthirayala6055
    @deepthirayala6055 Год назад

    Thank you so much, sir
    your teaching was superb
    🔥🔥🔥🔥🔥🔥

  • @Sakshiraghuvanshi0323
    @Sakshiraghuvanshi0323 Год назад

    That’s a gem! I thank you on behalf of all the people who watched this video but didn’t give a thumbs up. 👏🏻

    • @techTFQ
      @techTFQ  Год назад

      Thank you ☺️

  • @Kushbukushbu770
    @Kushbukushbu770 Год назад

    Thank you so much TFQ ..ur videos are more useful ❤im following ur videos and learning SQL

    • @techTFQ
      @techTFQ  Год назад +1

      Great it could help

  • @laurak5196
    @laurak5196 2 года назад +1

    I just came here to say look at you fly with 166K!!! And you deserve it, Thoufiq, content always right on point. Thank you 🙏🏻

    • @techTFQ
      @techTFQ  2 года назад +1

      Thanks Laura 🙏🏼
      As always very kind of you ☺️

  • @beyond_success
    @beyond_success 3 года назад +2

    Your tutorials helping a lot, please explain pivot in mysql

    • @techTFQ
      @techTFQ  3 года назад

      MySQL does not have PIVOT but we can do same thing in mysql using CASE statement.
      I have explained it in my leetcode video

  • @sandhyabarakam9465
    @sandhyabarakam9465 2 года назад

    Tq u so much sir👏
    Really this is very useful vedio👌👌👌

  • @harshshah9006
    @harshshah9006 Год назад

    was able to answer all except 4-5 . Thnx for this.

  • @tarakrama
    @tarakrama 2 года назад

    Awesome and valuable information!!

  • @debapriyabehera7146
    @debapriyabehera7146 Год назад

    I am Subscriber when watching your first video.... It's just waooo concept clear.... And feeling myself self confidence in SQL ....thanks... After watching every video... And saying it's truly after learning SQL from you .... interest in learning and making career in data field more only on in SQL.... Thanks a lot.🎉

    • @techTFQ
      @techTFQ  Год назад

      You're welcome ☺️ All the best

  • @jaggu_90
    @jaggu_90 Год назад

    your voice is so soft and clear....that is verry impressive and easy to understand......this vedio is helpfull

  • @RameshCh-me8jm
    @RameshCh-me8jm 2 года назад

    Thanks for sharing 🙂

  • @Ragima001
    @Ragima001 Год назад

    It was good that you reminded me of these. Thanks a lot

  • @dhirajdahale4687
    @dhirajdahale4687 3 года назад +3

    Very helpful.. 👍
    Please make a video for those who are switching there career in database
    Because it's difficult to get a job as a fresher..

    • @techTFQ
      @techTFQ  3 года назад +1

      Thank you Dhiraj 🙏🏼
      Will consider the suggestion for a future video

  • @septimus__Prime
    @septimus__Prime Год назад

    Thank you so much. I have an interview tomorrow

  • @mdaquibansari78
    @mdaquibansari78 2 года назад

    Really great Sir

  • @okedeborah4568
    @okedeborah4568 Год назад

    Thank you for this😊

  • @filmoney5746
    @filmoney5746 Год назад

    Great video 🙏🏾

  • @elakapalligangadhar6164
    @elakapalligangadhar6164 3 года назад +1

    TQ u sir it's great job it is helpful attending the interview

    • @techTFQ
      @techTFQ  3 года назад

      Your welcome Gangadhar.. glad this helps

  • @ishagupta972
    @ishagupta972 3 года назад +1

    best content on internet. glad to find you

    • @techTFQ
      @techTFQ  3 года назад

      Thank you Isha :)
      Glad you liked it.

  • @TrendingVideo1490
    @TrendingVideo1490 Год назад

    Thanks Taufiq, you are good at explaining the concept

  • @srt5806
    @srt5806 3 года назад +2

    Great article & Video on SQL Interview Questions! Please make videos on Sql query performance tuning.

    • @techTFQ
      @techTFQ  3 года назад +2

      Thanks bro.. will make video on performance tuning in the near future

  • @rinogo1
    @rinogo1 6 месяцев назад +1

    "Hi, let's read this blog together. But not really. Go read it yourself"

  • @yogeshmishra261
    @yogeshmishra261 3 года назад +9

    As an experienced person, I get asked on below questions -
    1. materialized view
    2. difference between temp table/ table variable/ CTE
    3. Union vs Union all
    4. table statistics
    5. execution plan
    6. isnull() vs coalesce()
    7. table partitioning

    • @nirmala3847
      @nirmala3847 2 года назад

      How many years of experience you have sir

  • @saritaxsingh
    @saritaxsingh 3 года назад +1

    Thank you dear

    • @techTFQ
      @techTFQ  3 года назад

      Your welcome 🙏🏼
      Glad this helped

  • @gauravmathur56
    @gauravmathur56 2 года назад

    It helped me a lot in my interview journey .

  • @ladysay3
    @ladysay3 2 года назад

    Thanks. Great video.

  • @42_nabihasan77
    @42_nabihasan77 2 года назад +1

    amzing sir

    • @techTFQ
      @techTFQ  2 года назад

      Thank you 🙏🏼

  • @jayakrishnachanumuru
    @jayakrishnachanumuru 5 месяцев назад

    Thank you sir

  • @simplesql1408
    @simplesql1408 3 года назад +1

    Great video!

    • @techTFQ
      @techTFQ  3 года назад

      Thank you 🙏🏼

  • @pujashree2402
    @pujashree2402 2 года назад

    Great video, before interview I watched and more or less I got this questions. Tysm 😃

  • @poojabiradar3832
    @poojabiradar3832 Год назад

    Great video sir thank you sir

  • @a.adegboyega
    @a.adegboyega 2 года назад

    Amazing concepts! thanks

  • @tiruveedipradeepkumar1487
    @tiruveedipradeepkumar1487 Год назад

    Very Nice Taufiq.....

  • @mohdmuzaffarahmed4923
    @mohdmuzaffarahmed4923 Год назад

    That was awesome bhai👏🏻😊

    • @techTFQ
      @techTFQ  Год назад

      Thank you very much 😊

  • @anaskhan4841
    @anaskhan4841 2 года назад +1

    What a great resource your channel is! MashaAllah love your content and your course on lighthouse.

    • @techTFQ
      @techTFQ  2 года назад

      Thank you Anas :)

  • @krushnadebashram5258
    @krushnadebashram5258 3 года назад +1

    Good expected questions

    • @techTFQ
      @techTFQ  3 года назад

      Thank you Krushna :)

  • @spartan2906
    @spartan2906 3 года назад +4

    I'm following your videos for all my sql concepts.
    And guess what I'm struggling with JOINS bcoz you didn't cover it yet.
    That's a level of dependency I have on you...😂😂
    Plz upload JOINS !! In the same way you explain with help of complex questions (that's matching with my way of learning ).
    Many many thanks 👏

    • @techTFQ
      @techTFQ  3 года назад +1

      Haha this is a big dependency bro 😬😃
      But I’ll definitely consider making the joins video soon ..

  • @scarefacearinze5981
    @scarefacearinze5981 2 года назад +1

    I discovered your channel today. excellent contents. Straight to the point with clear examples

  • @baloney_sandwich
    @baloney_sandwich 2 года назад

    Great vid ty

  • @saumyaranjannayak2101
    @saumyaranjannayak2101 2 года назад

    Great Video!!

  • @MyWorld-tz1pl
    @MyWorld-tz1pl 3 года назад +3

    Hi sir, Great video.
    Please make video on Query execution plan and Optimization.

    • @techTFQ
      @techTFQ  3 года назад

      Thank you and will consider making those videos in the future 🙏🏼

  • @girijashamak9142
    @girijashamak9142 3 года назад +7

    Happy to see the growth of your channel young man. Very much deserved . Appreciate your time and efforts . God bless 🙏

    • @techTFQ
      @techTFQ  3 года назад

      Thank you so much Girija :)
      Truly appreciate the blessings 🙏

  • @1112electronics
    @1112electronics 2 года назад +1

    Thanks for the awesome video on SQL .. please keep it up...the way you explain is really great... thank you so much Bhai...

    • @techTFQ
      @techTFQ  2 года назад +1

      glad you liked it

  • @Buzzingfact
    @Buzzingfact 3 года назад +1

    Great Video as always...
    Please can you make video on store procedure

    • @techTFQ
      @techTFQ  3 года назад

      Thank you 🙏🏼 and will do soon

  • @Tech-Nature-IND
    @Tech-Nature-IND 3 года назад +1

    great work....

    • @techTFQ
      @techTFQ  3 года назад

      Thank you 🙏🏼