Top SQL interview Questions and Answers | Most Asked SQL Questions for Job interview

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

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

  • @sahil-dogra
    @sahil-dogra ปีที่แล้ว +32

    I had an interview today and over the client call. they asked me write the query about "find the candidate with these skills" and I was lucky enough that I know this through your channel. Even though query did not work but they got the idea that I know this. I don't know if I will be selected or not but it definitely boost my confidence. Thanks a ton.

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

      Excellent! Keep learning n keep growing 🚀

    • @NIDHIMAHESHWARI-x8u
      @NIDHIMAHESHWARI-x8u ปีที่แล้ว

      in which company ? which types question will asked you?

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

      Which other questions they asked

    • @g.v.snitin8825
      @g.v.snitin8825 2 หลายเดือนก่อน

      Idiot say which question and which company name what will be useful for us for sharing this without the actual questions rip society

  • @vinayakdevane9688
    @vinayakdevane9688 ปีที่แล้ว +10

    Sir tumhi khup changl shikvta youtube vr best samjel as shikvnare tumhich ahat ❤

  • @karishmabhardwaj603
    @karishmabhardwaj603 ปีที่แล้ว +28

    One of My best learning Channel..... Thanks for this video Sir... :)

  • @vandanaprajapati2316
    @vandanaprajapati2316 ปีที่แล้ว +10

    Very Useful and explained very easily ....Waiting for Part 2 Interview Questions

  • @harshitverma1263
    @harshitverma1263 ปีที่แล้ว +28

    Literally one of the best channel related to data analyst/data science! Waiting for some more tutorials and projects related to this field. Also kindly continue this series on sql interview questions as this is by far the most asked thing in the interview

  • @hims5205
    @hims5205 5 หลายเดือนก่อน +9

    I was asked in recent interview for QA manual
    1. Find the list of employees in which 2nd letter is 'A'.
    2 Find the 2nd highest salary
    3. Aggregate functions
    4.Constraints in SQl

    • @Yourhotshorts
      @Yourhotshorts 4 หลายเดือนก่อน

      Bhai boht easy hai 4wo questions

    • @bindusharma8625
      @bindusharma8625 4 หลายเดือนก่อน

      for which company, deloitte?

    • @hims5205
      @hims5205 4 หลายเดือนก่อน

      @@bindusharma8625 Pinelabs

  • @MdRizwan-uu9dv
    @MdRizwan-uu9dv ปีที่แล้ว +11

    In question no. 11
    As per my understanding we can't use equal operator to compare NULL values because very NULL is different with other one that's why we have IS NULL, NOT NULL.

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

      Yeah i think you're right 🤔
      But you can use equals to Operator to update a value in sql.
      UPDATE customers
      SET C_CONTACTNO = NULL
      WHERE C_ID = 4;
      This works!

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

      Yes, for comparing Null values we don't use equal operators in sql.
      We always use 'Col_name is Null'

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

      true...we can't use equals to operator for comparing nulls...I got stuck at the same thing watching the video

  • @shakuntalakumari8460
    @shakuntalakumari8460 ปีที่แล้ว +12

    Hi Rishabh, please suggest some most asked questions in Power Bi & Dax at the intermediate level. U can also share the questions only.

    • @Aditya61515
      @Aditya61515 10 หลายเดือนก่อน +1

      Indian paradise Trainer visit this channel

  • @rishav144
    @rishav144 ปีที่แล้ว +8

    best channel for Data Science

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

    One of the best learning channel thank you very much sir

  • @MoNiKa-29-RN
    @MoNiKa-29-RN ปีที่แล้ว +3

    all videos are amazing... also u provide a pdf that is very useful.. Thank you so much, sir.

  • @susamay
    @susamay ปีที่แล้ว +4

    Really great channel. Your quality is at it's peak.

  • @sid_analytics
    @sid_analytics 8 หลายเดือนก่อน +1

    Very helpful! Thank you very much. Am literally watching this video one day before my interview

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

    Sir, thanks for such videos which are very helpful for data aspirants

  • @msebntaiyab1414
    @msebntaiyab1414 11 หลายเดือนก่อน +2

    I found the education channel First Aisa Channel to be a good one which gives you the opportunity to learn everything in easy language. I learned a lot from here, that's why I share this channel once every day. Rishabh bhai thank you so much!

  • @mantoshroy4076
    @mantoshroy4076 ปีที่แล้ว +4

    Keep continue sir 😊🙏
    Great content ❤️😍👌

  • @TataNaresh
    @TataNaresh ปีที่แล้ว +4

    Wow loved the way Rishab teaching SQL concepts enjoyed video.🤩

  • @abhayjaiswal4838
    @abhayjaiswal4838 5 หลายเดือนก่อน +1

    Nicely explained today learnt something new. Thank you Rishabh bhai🙌

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

    @Rishabh Mishra - in the question no 3, what if there is duplicate entry for skill sql instead of python, I mean for candidate id 101, if there are 3 entries of skills like SQL,POWER BI and SQL. The count will still show 3 but that is not the condition right ? how do we deal with duplicates skill entries ?

    • @RishabhMishraOfficial
      @RishabhMishraOfficial  ปีที่แล้ว +4

      In that case you can take distinct of skills as CTE n rest of the steps will be same n you will get the answer. Btw good question brother ✅️

  • @shitalthorat-wm6js
    @shitalthorat-wm6js ปีที่แล้ว +2

    Thanks a lot sir.... such valuable information

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

    Thanks bro..very helpful.. best of luck for channel.. learning more from you..

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

    Your Content is always nextLevel
    Thankyou sir.

  • @g.v.snitin8825
    @g.v.snitin8825 2 หลายเดือนก่อน +1

    The way you provided code even for creating the input table,hats off sir

  • @ujjwalkhandelwal5132
    @ujjwalkhandelwal5132 8 หลายเดือนก่อน +1

    Hello Rishabh bhai, a small correction at 6:47 in Solution MySql: please select 'MONTHNAME' instead of 'MONTH' to get the name of month.
    Keep it up the nice work👍

  • @dikshantsinghrawat3607
    @dikshantsinghrawat3607 9 วันที่ผ่านมา

    19:03
    SELECT * FROM table WHERE column = NULL; is incorrect in SQL syntax because NULL represents the absence of a value, and it cannot be compared using the equality operator (=)

  • @Crazy_Clips_R
    @Crazy_Clips_R 7 หลายเดือนก่อน +2

    from-> join-> on-> where-> group by-> having-> select-> order by -> limit

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

    Very well explained. Thanks a ton!!!!

  • @VIKASHSINGH-zg1lx
    @VIKASHSINGH-zg1lx 16 วันที่ผ่านมา +1

    Well explained 🥳

  • @shubham_vishwakarma97
    @shubham_vishwakarma97 ปีที่แล้ว +14

    For MySQL you can also use below query it will show month name also :--
    SELECT YEAR (order_date) AS Years, MONTHNAME(order_date) AS Months, SUM(sales) AS TotalSales FROM Products GROUP BY YEAR(order_date), MONTHNAME(order_date) ORDER BY TotalSales;

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

      Error-----'MONTHNAME' is not a recognized built-in function name.

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

      If you are getting the same Error in Q2 you can also use For MySQL :--
      SELECT YEAR(order_date) AS Years, MONTH(order_date) AS Months,
      SUM(sales) AS TotalSales
      FROM Products
      GROUP BY YEAR(order_date), MONTH(order_date)
      ORDER BY TotalSales;

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

    Thanks a lot for such a wonderful sessions… just with 2 videos my most of the sql concepts are making sense now… thanks a lot 🎉🎉 And congratulations for your achievement😍🧿

  • @mayurib5667
    @mayurib5667 8 หลายเดือนก่อน +1

    Sir you are explaining very well. Thank you

  • @niharikamishra9745
    @niharikamishra9745 ปีที่แล้ว +11

    Sir you have set a new milestone to the learners it's a blessing to found your channel and learn from it.
    I have completed your power BI three lectures and literally they are the best ❤❤❤❤❤

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

      Glad it was helpful ✅️ keep learning n keep growing 🚀

    • @ganeshauti-f1s
      @ganeshauti-f1s ปีที่แล้ว

      Appka gane ka program kesa chal raha he

  • @PankajPandey-vc6vc
    @PankajPandey-vc6vc ปีที่แล้ว +1

    The way you explain the things its amazing thanks Rishabh

  • @SnehaSingh-yv1qx
    @SnehaSingh-yv1qx ปีที่แล้ว +1

    Ans 1 select from where group by having order by limit

  • @sachinkale2452
    @sachinkale2452 9 หลายเดือนก่อน +1

    Thank You Rishabh great video 👏

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

    Reviewing it again before going for an Interview,
    Thankyou Rishabh bhaiya ❤❤

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

    Thank you so much sir for a sharing video

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

    Kindly continue this series on Important Questions on SQL

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

    Execellent presentation Respected Sir

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

    Hi sir, Please make more videos on scenario based questions. Your explaination to queries are great. Please make more such content in postgresql.

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

    Thank you sir , really valuable questions for us.
    Please upload a video on Tableau project.

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

    very very helpfull for me sir🙏❤

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

    Sahab u r king 👑 of SQL plz post many sql video's

  • @anshumankumar9342
    @anshumankumar9342 ปีที่แล้ว +9

    Your videos have been very helpful, and it would be great if you could provide more practice SQL questions in future videos. I appreciate the value of your content and find it worth watching

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

    Very informative video in simple way … 👍

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

    very nice vdo and explaining sooo well

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

    Really enjoying watching your videos, learning a lot , Thanks for doing such a great work for community. God bless you.
    A request - Could you please make a video on SQL server profiler and how to debug Stored Procedure??

  • @amanzia2495
    @amanzia2495 7 หลายเดือนก่อน

    Solution of Question 3
    select id,count(skills) as 'coreskills'
    from [table_name]
    group by id
    having count(skills)=3
    order by id

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

    you are very hardworking, genius. you have put lots of efforts to make this videos. I CAN understand. thank you so much

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

    Sir best video 📸

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

    Sir thank uh so much for providing such a usefull and effective content!! So can uh pls make video on full fledge SQL project!?

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

    You contain some special talent for explanation

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

    meri galt fehmi the ki jayda subscriber waala
    hi acha sikha hai . Thanks for this type of content.

  • @Arshadpathan-f7d
    @Arshadpathan-f7d ปีที่แล้ว +1

    Thanks for PDF ❤

  • @RahulMishra-oc7dv
    @RahulMishra-oc7dv ปีที่แล้ว +2

    I think this is easy compare to you for skills>3
    Select candidate_id,count(*) from tablename group by candidate_id having count(*)>2;

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

    thankyou bhaiya 😃😃😃

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

    Very informative video

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

    thankyou sir for putting this effort for us

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

    please more more parts of such amazing videos.
    will be helpful

  • @MohammedShoaib-i9l
    @MohammedShoaib-i9l 4 หลายเดือนก่อน

    Keep up the good work
    I find your videos really helpful.

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

    Thanks for this Content ❤.

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

    Please make video on MySQL for data analytics

  • @jsm00000
    @jsm00000 2 หลายเดือนก่อน

    If we use something to avoid duplicates in Q3, wouldn't it make more sense. Practically in a large database there are chances of duplication due to manual or technical errors.

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

    Keep it up sir 👍 very helpful content 😊

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

    Greattttttt!
    Bhaiya please make videos on cte and regex also please

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

    Useful video sir

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

    How to find duplicate data without using group by clause and distinct ? Using CTE

  • @sushantmeshram5172
    @sushantmeshram5172 6 หลายเดือนก่อน +1

    thank you so much Rishab

  • @sushantprabhu007
    @sushantprabhu007 7 หลายเดือนก่อน

    Excellent videos Mishra ji. Aise video dekhe nahi kabhi

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

    valuable content brother ...and congratulations brother u marked 120k subs. keep growing

  • @PrakharPandey-no9zs
    @PrakharPandey-no9zs ปีที่แล้ว +1

    please keep uploading bhaiya. Nice content

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

    Really HatsOff to your HardWork bro

  • @Adesh_009
    @Adesh_009 4 หลายเดือนก่อน

    Thank you soo much 🎉

  • @Archtech-on1qq
    @Archtech-on1qq ปีที่แล้ว

    Helpfull...👍

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

    Good content

  • @tenzinchoepheldev
    @tenzinchoepheldev 4 วันที่ผ่านมา

    Q14 : do we have to specify conditions to update ? If yes there is no condition mentioned

  • @PatialaKing-up2te
    @PatialaKing-up2te 7 หลายเดือนก่อน

    Thank you sir ❤❤

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

    Rishabh, please upload a detailed video on SQL triggers

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

    Hey hope you doing good I am new here
    I feel you doing fantastic work your way of teaching unbelievable... I requested to you please make vedio on full analysis like how to collect data how to transform, organize data, and how make preidiction and drive informed decisions... And where I need sql and python and pythonlibraries for retrieves and manipulate data

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

    Nice content. Please share create and Insert statements in the description box. Thank you.

  • @ShreyasAkode
    @ShreyasAkode 10 หลายเดือนก่อน +1

    thanks sir for making this video

  • @unicorn27-01
    @unicorn27-01 5 หลายเดือนก่อน +2

    please make more videos like this also please make a oneshot video on mysql

  • @zahidalam7831
    @zahidalam7831 9 หลายเดือนก่อน

    You explained very well sir I m waiting for another video

  • @souvikghosh6025
    @souvikghosh6025 ปีที่แล้ว +4

    Sir I'm using Microsoft SQL server. What's the function i use instead of EXTRACT ? Please tell if u feel to answer 🙂

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

      use year() and month() function to extract year and month from date

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

      DATENAME(month, ‘08/09/024’)

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

      DATENAME(month, ‘08/09/024’)

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

    Please more sql queation video share with data .
    Data rah to sath-sath pratice hoti hai .
    your video awsome hai voice video clearity👍. Muzhe bohat help ho rahil hai .

  • @RK-wf7re
    @RK-wf7re ปีที่แล้ว +1

    Hi, excellent content. Can't we write extract (month from order date) to retrieve month?

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

      Glad you liked it ✅️
      Yes you can but all of this depends on which database u are working on.

    • @RK-wf7re
      @RK-wf7re ปีที่แล้ว

      @@RishabhMishraOfficial Thank you so much for your prompt response.

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

    Rishabh please make video on Most common Data Analyst interview questions!

  • @AshishTiwari-ug2lg
    @AshishTiwari-ug2lg 7 หลายเดือนก่อน

    Mishra Ji Rocks 💥💥💥💥💥
    By the way Mishra Ji You are From Where?

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

    awaited for......complete data science project where excel ,sql,python & tableu used. @Rishabh Mishra

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

    Hi bhaiya
    please try to bring atleast 1 project video every week . The viewers demand :)

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

      Okayy noted ✅️, even i m thinking something similar to this

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

    Aur videos Q/A pe post kariye , it's really helpful

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

      Already uploaded one more video watch that it had advance questions as well

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

    solution for question 3:
    SELECT candidate_id
    FROM your_table_name
    WHERE skills IN ('sql', 'python', 'power bi')
    GROUP BY candidate_id
    HAVING COUNT(DISTINCT skills) = 3
    ORDER BY candidate_id ASC;
    Is thisone correct solution rishabh bro??

    • @AditiSharma-zo5dq
      @AditiSharma-zo5dq ปีที่แล้ว

      solution shi h but output table m skill count bhi chahiye to vo bhi select karna hoga

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

      @@AditiSharma-zo5dq Please reply in english. I don't understand hindi.

    • @AditiSharma-zo5dq
      @AditiSharma-zo5dq ปีที่แล้ว

      Your solution is correct but in output table we need skill count too
      So you have to select it that too

  • @bhavinpadhiyar9829
    @bhavinpadhiyar9829 10 หลายเดือนก่อน

    Thank you for this video, Rishabh!! Congratulations for completing 202K subscribers on this channel...

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

    you are the best

  • @MubarakAli-qs9qq
    @MubarakAli-qs9qq 4 หลายเดือนก่อน +1

    Best ever tutor

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

    Sir, aur question answer video channel mei post karo na.... bohot helpful hoga

  • @surajsinghrajput2168
    @surajsinghrajput2168 9 หลายเดือนก่อน +1

    very very useful

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

    40k congratulations ❤

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

    Please start series in English 😊

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

    Awesome