SQL "difference between" interview questions (part 1)

แชร์
ฝัง
  • เผยแพร่เมื่อ 8 ก.ค. 2024
  • In this video, we'll understand some important sql interview questions. These questions are often asked in interview and should be known by anyone who wants to master SQL.
    Following are the questions which will be covered in this video:
    1. Difference between where and having?
    2. Difference between union and union all?
    3. Difference between in and exists?
    This is part 1 of this video.
    Part 2 will be released tomorrow.
    In part 2, the following questions will be covered:
    4. Difference between group by and order by?
    5. Difference between join and sub query?
    6. Difference between join and union?
    ✨Work related mails can be sent on:
    work.sadiasiddiqui@gmail.com
    ✨If you appreciate my work and would like to donate to support our channel, you can do so here:
    paypal.me/sadia1702

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

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

    Best thing about your videos is You take very less time to cover many things and yet explaining it so beautifully.. Thanks for spreading the knowledge.. 👍🏻

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

    I've been looking for something like this from a long time.I've not seen any video where SQL is explained in such a simple and easy way. Thanks a lot for this.

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

    The way she says sorry sorry ❤️.. great tutorial ..am following every video.. simple and to the point ..

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

    You can still use WHERE clause aggregated functions.
    Select max(column) from table where
    Meaning: select max out of a column value from a table with a filtered records based on a condition.

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

      Yes.
      And we can't use having without group by

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

      Yes

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

      th-cam.com/video/QTaiF8N6i3Y/w-d-xo.html🙏🏻🙏🏻

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

      This TH-camr has no idea what she is talking about man....

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

      th-cam.com/video/p0gL1pAhGZE/w-d-xo.html

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

    I gained confidence from your teaching. Kudos

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

    Hi, The best thing is that All of your videos are clearly explained in a short period of Time and it covers many things. I Really appreciate ur effort and please keep on continuing it🙏🙏 Thanks you so much

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

    I am thankful that such a clear and knowledgeful information shared for all
    May God bless you for the helping and sharing
    thank you

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

    Great job sis.. kudos!!
    Small correction @ 3:33 ---- 'Where' can be used while aggregating rows (Where and Group by works)
    'Where' will filter at Row level
    'Having' will filter at 'Group by' level
    No intention of pointing out mistakes here.. your channel is gaining popularity, and many are learning from this channel, great job!!. On the same lines - my two cents .. if that helps your viewers!!
    Oh, I haven't seen before - couple of others also mentioned about this correction.. great!! Good job!!
    (wouldn't have posted this if i have seen that earlier)
    Good job everyone!! Happy learning!!

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

      Thank you 😊

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

      I really like the way you explained and it is useful for me...

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

      Sir I need to add few more points and let me know if I am wrong. If where clause is being used after the 'group by' statement this wouldn't work out. If we want SQL to use group by with where, 'where clause' should be used before Group by statement which actually filters the data from reference table first then grouping the data. Since, we are not using any aggregate function to group our data hence this group by also acts like order by. Disagree if I am wrong

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

      th-cam.com/video/p0gL1pAhGZE/w-d-xo.html

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

      Thanks for this. I could have got wrong understanding now about using HAVING clause.

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

    Thank you, sister, the way you teach is wonderful, stay blessed and happy forever. as a beginner, I admire your effort.

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

    THANK YOU SO MUCH!!!! Cleared all the doubts in a single go!

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

    Amazing video series on SQL. Honestly this has been my ONLY goto channel whenever I feel I need to brush up my SQL coding skills.

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

    clear, simple and easy way of explanation , Thank you !

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

    Having is the only solution giving you the option to filter on the results of the aggregate function. Where can still be used on the other fields of the dataset before the aggregate functions are processed.

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

    1. Aggregate
    2. Duplicate
    3. Scan and Boolean evaluation
    4. Position
    5. Performance
    6. Columns and Rows

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

    Great tutorials. Thank You very much. looking forward for more videos from you.

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

    Thank you..Concepts clearly explained in short time..GOD bless you

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

    Thanks for sharing very well explained

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

    Your voice is really sweet Mam.. A very good and simple way of explaining 👍

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

    This and the second part is sooooo Awesome. You Rock. Blessings from United States. :)

  • @vS-mn9id
    @vS-mn9id 3 ปีที่แล้ว

    God bless... very straight to the point... Perfect... Kudos to your work

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

    I have started watching your videos recently, believe me you are amazing the way explained just nailed it.Impressive work keep it up last but not least thank you.

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

    Proper explanation with great presentation 😊

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

    What a voice dude , damn pleasant

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

    Nice. You are explaining things clear. Like inner query and outer query.

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

    Thank you so much Ma'am for your detailed information. This helped me to brushed up

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

    I became fan of your voice nd thanks for the most common interview question explained in great manner👍👍👍🙏

    • @manikandan-hz8yd
      @manikandan-hz8yd 2 ปีที่แล้ว +6

      🤣🤣🤣🤣🤤🤤

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

      Men is always men

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

      (meanwhile in the background I heard)
      Pyar ki raah mein chalnaa seekh....

    • @Mohammed-up8lg
      @Mohammed-up8lg 2 ปีที่แล้ว +1

      Creep spotted 😂😂😂

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

      @@tanvir7783 🙏

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

    Ur way of explaining concepts is simple and cool to understand soon....
    Tq for sharing videos..

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

    Most usefull .....
    Great work 👍

  • @331sairam
    @331sairam 3 ปีที่แล้ว

    Straight concept clear voice ....cool

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

    You have a wonderful soft voice ..

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

    Thanks for this video ...

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

    Best sql channel ...thanks mam for this series and all effort u have put in

  • @SameerShaikh-ty5zt
    @SameerShaikh-ty5zt 2 ปีที่แล้ว

    Thank you.. Your way of explaining is sweet.

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

    Great job sister . Best tutorials I have ever seen . Keep it up

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

    Love these videos. Great job!

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

    Your notes are so well define easy to understand

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

    To the point ,
    helped me.
    Thank you 😀

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

    Simply explained, thank you :)

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

    Thank you for the video!

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

    Thank you sadia

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

    Very nice explanation

  • @NikitaSharma-bs4gg
    @NikitaSharma-bs4gg 2 ปีที่แล้ว

    Thanks - was so helpful

  • @user-pe9wc7ig2i
    @user-pe9wc7ig2i 2 ปีที่แล้ว

    Great explanation, thank you, dear

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

    Nice tutorial and clear voice to understand.

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

    Very helpful.. thank you..✨

  • @Rohitkumar-vq1yk
    @Rohitkumar-vq1yk ปีที่แล้ว

    Thank you this has helped me a lot

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

    Excellent video!

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

    A good and knowledgeable video, thank you sister for sharing with us.

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

    It was a great video of explaining such a complicated concepts 👍.

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

    Thanks for the making videos! Its very very helpful

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

    Nice and clear explanation, thank you very much from south yemen.

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

    Amazing work keep it up

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

    Great👍

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

    Mam the way of explanation is super thanks for given valuable classes

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

    Informative

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

    You are explaining so good and your voice also amazing
    Great work mam

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

    NIcely explained, Thank you

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

    We can use where clause and having too because we can filter non aggregated value and having count(emp_id)>=1 . Instead of using having emp_id>105 u shld have use where emp_id>105

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

      Correct. Made a mistake there. Thanks for correcting! :)

    • @nishanthgaddam8426
      @nishanthgaddam8426 4 ปีที่แล้ว

      @@crackconcepts No worries and thank you for educating us 😀😊

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

    Excellent explanation

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

    Whatt a Amazing voice !!!😍😍🥰♥️
    & Explanation is also good 💜

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

    Helpful 👍

  • @sonukumar-pr2nc
    @sonukumar-pr2nc 4 ปีที่แล้ว +1

    achha pdhati ho, keep it .

  • @snuffshot9287
    @snuffshot9287 5 หลายเดือนก่อน

    Thank you 🙏

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

    thank u mam such simple explaination about union i never understand my whole enginnering .....keep provide us such .. this type of information... thank u so mmuch ......🤗🤗🤗🤗🤗🤗🤗

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

    very helpful for the interview preparation

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

    Nice way of explaining 👍

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

    Nice mam 👍 thanks 😊

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

    Good job mam👍👍
    Please upload more videos regarding plsql with examples as many as u can .
    Your explanation is tremendous ...

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

    mam, please note the correction that, where can be used in your explanation for id, having is only used for aggregated filters.

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

    Good explanation

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

    Very well presented 🙏 👌👌👏👏

  • @itdp.warangal
    @itdp.warangal 2 ปีที่แล้ว

    I think this video was done at election time. This video helped me now. Nyc1

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

    we can use where instead of having , we use having when we place the group by clause

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

    Very very nice and simple methods with examples 😄😄😄 thank u for videos

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

    Good one.

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

    very nice voice, explained in good way

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

    Nicely explained. Mam

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

    Thank you very much!

  • @ajinkya-eigteen5144
    @ajinkya-eigteen5144 3 ปีที่แล้ว

    Thank you so much ....love you

  • @AMITVISHWAKARMA-dy2wi
    @AMITVISHWAKARMA-dy2wi 3 ปีที่แล้ว +26

    When we use max() function still we can use the where clause it works.

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

      Yes

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

      Yes but it should be before having clause

    • @vinnu.gamer.2096
      @vinnu.gamer.2096 3 ปีที่แล้ว

      Yes even I wondered when she said that .. I do it daily...

    • @vivekpuri-08
      @vivekpuri-08 3 ปีที่แล้ว

      What she said is exactly what I found on w3schools.

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

      We can use it on to find maximum values in the database

  • @RahulGupta-fk4cz
    @RahulGupta-fk4cz 4 หลายเดือนก่อน

    Mam your voice is so sweet and the way of your teaching is also good

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

    You are doing great job sister with husky voice

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

    Nicely explained 🔥

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

    Thank you very much 🤩

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

    amazing what a voice and you are explanation also awesome keep going

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

    Thank you

  • @AshokKumar-fm7xb
    @AshokKumar-fm7xb 3 ปีที่แล้ว

    Good job 🙏

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

    Thanks!

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

    Your really great

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

    very well explained . I watched just one video & subscribed .

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

    Volume of teaching can be increased to hear well and understand.Thank you

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

    excellent

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

    Nice tutorial didi

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

    Very mild n cute voice ❤️

  • @ARPITTHEIRONMAN
    @ARPITTHEIRONMAN 4 ปีที่แล้ว

    very nicely explained

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

    Awesome video

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

    Awesome voice and good explanation 😍

  • @piyushkapil9598
    @piyushkapil9598 4 ปีที่แล้ว

    Thanku so much please make more videos

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

    Aggregate function
    It is used to multiple rows of single column

  • @SureshKumar-ug4ep
    @SureshKumar-ug4ep 2 ปีที่แล้ว

    Very nicely explained! and your voice is soooo sweet!
    Keep it up👍