Solving SQL Interview Queries | Tricky SQL Interview Queries

Поділитися
Вставка
  • Опубліковано 15 бер 2022
  • In this video, I will explain and solve 3 tricky SQL Interview Queries. These are the SQL Queries which can be expected during SQL Interviews for both beginners and experience level interviews.
    Many times, SQL Queries given during SQL Interviews are more tricky than complex. The solution to the SQL question may be simple but understanding the question and dataset and analyzing the data will play the most important role when solving such SQL queries. Hence mentioning the tricky SQL queries which you may expect during SQL interviews.
    My email id: techtfq@gmail.com
    All the Dataset, SQL scripts and queries written in this video can be found in my blog.
    Link to my blog: techtfq.com/blog/solving-3-tr...
    My recommended platform to practice SQL queries: www.stratascratch.com/?via=te...
    My recommended platform for SQL Course: learnsql.com/?ref=thoufiqmoha...
    Consider SUBSCRIBING to my channel if you wish to learn SQL, Python and Data Analytics concepts.
    🔴 WATCH MORE VIDEOS HERE 👇
    ✅ SQL Tutorial - Basic concepts:
    • SQL Tutorial - Basic c...
    ✅ SQL Tutorial - Intermediate concepts:
    • SQL Tutorial - Interme...
    ✅ SQL Tutorial - Advance concepts:
    • SQL Tutorial - Advance...
    ✅ Practice Solving Basic SQL Queries:
    • Practice Solving BASIC...
    ✅ Practice Solving Intermediate SQL Queries:
    • Practice Solving INTER...
    ✅ Practice Solving Complex SQL Queries:
    • Practice Solving COMPL...
    ✅ Data Analytics Career guidance:
    • Data Analytics career ...
    ✅ SQL Course, SQL Training Platform Recommendations:
    • SQL Course / Training
    ✅ Python Tutorial:
    • Python Tutorial
    THANK YOU,
    Thoufiq

КОМЕНТАРІ • 461

  • @karthikvenkataram4790
    @karthikvenkataram4790 Рік тому +7

    Thanks a lot TFQ. Your videos is not just a video it is a service for many techs like me. Beautiful explanation that too for tricky questions. More than that the SQL commands to execute and practice in our IDE's that you share get me more to my fullest satisfaction. A special thanks for that too buddy.
    Please keep up the good work.

  • @darshpancholi4919
    @darshpancholi4919 2 роки тому +16

    Please add this video to the SQL playlist! Started watching the joins video and I have never seen a better explanation before. Love the content!

  • @ManuelrPM24
    @ManuelrPM24 Рік тому +6

    For the second one in oracle this query also does the trick in one single query
    SELECT NVL(A.ID,B.ID) AS ID,
    CASE WHEN B.NAME IS NULL THEN 'New in Source'
    WHEN A.NAME IS NULL THEN 'New in Target'
    ELSE 'Mismatch'
    END as Comment1
    FROM source A
    FULL JOIN target B ON A.ID = B.ID
    WHERE NVL(A.NAME,'$') NVL(B.NAME,'$');
    I used full join and excluded the names that matched then is just added the Case.
    Great Video!

  • @klokeswarreddy3205
    @klokeswarreddy3205 2 роки тому +17

    Sir, can you explain about what exactly a sql/ plsql developer do in software industry and what are the career growth options in future for sql developers in IT industry. Is it better to go through in that domain?

  • @vlog.444
    @vlog.444 3 місяці тому +2

    அருமையான எஸ் பி எல் வினாவல் அருமையான எஸ் பி எல் லாங்குவேஜ் சொல்லி கொடுத்ததற்கு நன்றி

  • @lakshmipriya8416
    @lakshmipriya8416 Рік тому +25

    I am really thankful to you .. few months ago I was not so confident on myself to give interviews.. after started learning from your videos given around 4-5 interviews confidently. Thank you😊..

  • @madhusudhanreddyt2838
    @madhusudhanreddyt2838 Рік тому +11

    The way you explained and the pain you have taken to make such wonderful videos is way beyond saying thanks...you are a rockstar man....keep posting such kind of tricky queries...will help someone get a job...all the best bro...

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

    The best channel to learn sql topics as well as solve questions.

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

    Awesome Explanation on Third Query... Thank You so much.

  • @Sunny-ok7dl
    @Sunny-ok7dl Рік тому

    Amazing explanation, these 37 minutes were totally productive

  • @ganeshv791
    @ganeshv791 2 роки тому +17

    Hi, Your videos are very unique and easy to learn
    Can you please make videos related to Grouping sets, Rollup, Within group.
    And also please make related to dynamic sql
    Thanks for your time.

    • @techTFQ
      @techTFQ  2 роки тому +6

      Thank you bro and noted on the request

  • @HotThupka
    @HotThupka 2 роки тому +5

    He is a savior. I am lucky that I came across his videos. Such a lucid explanation. Thank You. Please upload more of SQL Queries needed for Data Science Folks !!

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

      Glad you liked my contents :) thank you

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

      @@techTFQ My Pleasure, its for my benefit

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

    Really you are born to teach .just loved your way of explaining Thank you so much

  • @Hsalz
    @Hsalz 4 місяці тому

    You are simply amazing, Thoufiq! I took your SQL Bootcamp last year and often come back to your content for additional practice and learning. Stay blessed!

  • @2011var
    @2011var Рік тому

    God bless you. Taking your precious time and helping others.

  • @mohan_kannadiga
    @mohan_kannadiga 11 місяців тому

    Brilliant Query approach

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

    Hi, these kind of videos really helps, and the way you teach is very good. You are helping us in a great way possible. Keep up the good work.

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

    Thanks a lot TFQ for giving such wonderful explanation for all these questions.
    I started watching your YT channel a month back your teaching style and your logical explanation for each concepts MINDBLOWING.
    Thank you again for sharing your knowledge.

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

      Thank you for the kind words bro 🙏🏼🙏🏼

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

    I just got to know He is from Malesiya , such really amazing contents not finding anywhere in youtube , please keep posting more videos like this 🙏🏻🙏🏻, really feeling like big brother is helping to understand such complex things in a simpler way 😇, Love from India 🥰

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

    you are best educator ever for sql 🙏

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

    you have excellent way of explaining the query and how system works.. really great videos.. good work

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

    great your way of explaining problem and solving them adds fun for them also who thinks sql very tough .great job sir.

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

    We want more n more videos like this... excellent work...keep it up ...

  • @alirehman4041
    @alirehman4041 11 місяців тому

    Very informative and easy to absorb. Thanks mate.

  • @akhilreddy5208
    @akhilreddy5208 Рік тому +3

    You are really explaining the complex queries which will be very helpful for professionals as well

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

    Nice boss. Simple explanation especially the third query using less than really intrigued me. You deserve my humble subscribe

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

    Thanks for your videos, very helpful for me when I started to find a job. Thanks a lot

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

    Really good explanation.. easy to understand even the problem is very complex.. thank you so much for your time

  • @nishapandit5131
    @nishapandit5131 9 місяців тому

    Wonderful expiations, especially the last question has a newer nuance..

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

    Ur way of explanation is super,
    Keep go like this sir

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

    Nice one I feel very relax to solve them
    Thanku very much

  • @infamismworldwild6248
    @infamismworldwild6248 Місяць тому

    Thank you this was powerful and expanded my understanding on the application of SQL

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

    Really appreciate your efforts on this sir..🙏

  • @benlong1062
    @benlong1062 9 місяців тому

    This video was really interesting. Your explanations are great! Thank you

  • @zacharyrohrback
    @zacharyrohrback 3 місяці тому

    Thank tou for serving us the knowledge we need!

  • @jean-baptistezirimba2504
    @jean-baptistezirimba2504 5 місяців тому

    Great job

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

    Excellent! Thank you very much. Such a hard concept to understand, you made so easy sir.

  • @Be-Inspired7
    @Be-Inspired7 2 роки тому

    Love the query solving videos

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

    Hi Thoufeeq bro, your videos are very useful. In oracle 11g seems like column names are not accepted in when then condition, only string values are getting accepted. is there any other option.

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

    Thank you .. for the great explanation!

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

    hi taufiq, the approach for 3rd problem was out of the world. thanks for such a mind-blowing approach.

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

      Thank you Sumit :)

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

    Well presented and solved ! Mnay thanks TFQ !

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

    This guys explanation is perfect and amazing

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

    very helpful all the sql queries examples thanks brother please share more the complex sql queries real life examples

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

    its great to learn this query

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

    awesome. would like more such videos

  • @traumegaz
    @traumegaz 9 місяців тому

    thanks teacher, im learning alot your a great teacher

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

    the way you explained is next level Sir Thank You so much

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

    Sahi video, sahi samay par!

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

      Hope this helps 👍

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

    Thank you so much for the video.. It was really helpful and the way you explain makes learning easier.. Thanks a ton.. Would also request you to please make some video on normalization database migration and database optimization.. Thanks in advance

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

    great work

  • @ayazahamed8254
    @ayazahamed8254 21 день тому

    Very Well Explained.

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

    Wow! Thanks for this detailed explanation.👏

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

      Glad you liked it

  • @amit.pawase007
    @amit.pawase007 2 роки тому +2

    Thank you so much for the thoughtful explanation. 😊
    One thing came into mind, 2nd query with union of 3, instead, can we use full join with case statement to print the desire output?

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

    Excellent explanation bro...

  • @siddheshaddarkar4074
    @siddheshaddarkar4074 2 місяці тому

    Logic is correct... In second query you have used union operators and same table is scanned 3 times which may not be suitable for big tables... We can use cte for the same

  • @krishpoptani7862
    @krishpoptani7862 17 днів тому

    The video is quite informative, and way of teaching is great.

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

    Thank you very much , very helpful

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

    Mashallah beautifully explained. Keep up the good work❤

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

      Thank you Fouzia :)

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

    thank you for the explanation!

  • @shailajakesani8048
    @shailajakesani8048 2 роки тому +29

    Hi, i have attended interview recently and they asked question about which command is used to find error? Could you please help this? Thanks in advance.

  • @sathishkumar-yd3pk
    @sathishkumar-yd3pk 2 роки тому +1

    Very smart query. Thanks for sharing this query

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

      Your welcome buddy

  • @AmitSingh-er3lk
    @AmitSingh-er3lk Рік тому

    Great one... 👍

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

    Loved you. Amazing session and videos. Love you more. Thanks a ton. You get lot of fame and money and you are amazing. God bless you.

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

    Just Awesome Brother ! SQL is an ocean and you're helping others to voyage !!

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

      Thank you buddy

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

    Very useful

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

    very helpful tutorial with realistic examples..

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

      Thank you buddy

  • @rajkumarrajan8059
    @rajkumarrajan8059 9 місяців тому

    Brilliant !!!

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

    excellent work sir !! please come with more practical example like this ,,

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

      Thank you Das and will do

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

    Totally different , easy to understand 👌

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

      Thank you 🙏🏼

  • @kunalkumar-hl6gv
    @kunalkumar-hl6gv Рік тому

    thanku so much for this video

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

    Just loved the way you teach....thanks a ton brother....Respect from INDIA.

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

      I just got to know He is from Malesiya , such really amazing contents not finding anywhere in youtube.

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

    I am always eagerly waiting for your next vedio.. to learn new things.. keep going..

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

      Thank you for the support Prajakta 🙏🏼
      Appreciate it ☺️

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

    Your exemples with the excel really helped understand the logics, thanks!

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

    superb video

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

    Excellent explanation...thank u so much for such kind of sessions.

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

      Most welcome bro!

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

    This is really wonderful video. Thank you so much. Please do come up with such wonderful contents.

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

    excellent sir

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

    Great Explanation..It’s very useful 👍

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

      Glad this helped

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

    Your vedios are really helpful. Please keep it up 👍 🙏

  • @VibeQueen24
    @VibeQueen24 Місяць тому

    Thank you sir, for making such informative videos. it's really helping me practice for my upcoming interviews. One request is to please make videos on puzzles and guesstimates for full practice for the role of data analyst.

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

    Thanks, for the clear explanation brother. Can you also share therory part of each sql concepts please...

  • @nakulbarot
    @nakulbarot 11 місяців тому

    wonderful💯

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

    really, very appreciative video and the channel itself fro learning sql.
    Thanks a lot sir for providing this.

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

      Thanks you Wagh :)

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

    Great video, thank you

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

      Glad you liked it!

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

    Really thank you 😊

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

    Awesome video!! Loved it!!

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

    Thanks. Thanks a lot. Your concepts are easily understandable.

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

      Glad to hear that bro

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

    Absolutely perfect

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

    thank you so much. superb video

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

      Glad you liked it

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

    I really like it.
    And I've interested on more like this.
    keep doing.
    appreciate ur hard work.

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

      Thank you Husain and noted

  • @SACHINKUMAR-px8kq
    @SACHINKUMAR-px8kq Рік тому

    Thankyou So much Sir 😃

  • @guzmanerpr
    @guzmanerpr 7 місяців тому

    Thank you for taking your time to explain this.

    • @techTFQ
      @techTFQ  6 місяців тому

      Glad you liked

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

    Excellent sir....worth watching....tqsm ❤️❤️

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

      Thank you Mahesh :)

  • @archana-sv1hh
    @archana-sv1hh 4 місяці тому

    Hey Taufiq, Could you please make a video on indexing .You explain very well. Want to understand SQL indexing thoroughly but couldn't find any video on your channel. If you already have made video on it, could you please share the link here?

  • @ashutoshkumar-gv7wu
    @ashutoshkumar-gv7wu 2 роки тому +1

    Kindly come up with real life Day to day activity a SQL Developer or a data analyst does in the industry or the company. Like please explain when we join any company how are these Query useful there with some kind of live examples. For instance how a data analyst uses SQL in his day to day work at the office. Also please continue providing such videos and please come up with full tutorial videos in a sincere format like a course

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

      Noted on the request bro, let me think about it

  • @kranthikumarchinthamalla955
    @kranthikumarchinthamalla955 11 місяців тому

    Hi TFQ, Thanks for the video. How come the result output is not in the order of those three queries joined by the union? it should be like: 4-Mismatch then; 3-New in Source then; 5-New in target right?

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

    I wouldn't ever hire the one who solves the second task like you did.
    This is the clear task for the FULL JOIN

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

    Great explanation. Looks like for the third query you had already solved the second part first using not equal on team names.

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

      I did but I wanted to provide a more meaningful and easier to understand solution at the end hence used row number concept

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

    your videos helps me a lot to solve complex queries...

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

      I am glad to hear that buddy