SQL "difference between" interview questions (part 1)

แชร์
ฝัง
  • เผยแพร่เมื่อ 3 ม.ค. 2025

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

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

    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 3 ปีที่แล้ว +9

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

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

      Yes

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

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

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

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

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

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

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

    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  4 ปีที่แล้ว +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 3 ปีที่แล้ว

      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.

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

    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 2 ปีที่แล้ว +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.

  • @anvi015
    @anvi015 ปีที่แล้ว +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.

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

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

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

    I gained confidence from your teaching. Kudos

  • @RKBKamii
    @RKBKamii 29 วันที่ผ่านมา

    great tutorial ..am following every video.. simple and to the point ..

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

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

  • @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 😀😊

  • @anishahamad5034
    @anishahamad5034 27 วันที่ผ่านมา

    keep it up.....
    nyc explanation

  • @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

  • @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.

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

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

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

      🤣🤣🤣🤣🤤🤤

    • @Bdlover-24
      @Bdlover-24 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

      @@Bdlover-24 🙏

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

    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 ......🤗🤗🤗🤗🤗🤗🤗

  • @gganesh-l6y
    @gganesh-l6y 2 ปีที่แล้ว

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

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

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

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

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

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

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

  • @AMITVISHWAKARMA-dy2wi
    @AMITVISHWAKARMA-dy2wi 4 ปีที่แล้ว +28

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

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

      Yes

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

      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 ปีที่แล้ว +1

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

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

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

  • @charanrajuc1285
    @charanrajuc1285 10 วันที่ผ่านมา

    Nice one❤

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

    Aggregate function
    It is used to multiple rows of single column

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

    Straight concept clear voice ....cool

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

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

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

    Thank you.. Your way of explaining is sweet.

  • @sartz444
    @sartz444 3 ปีที่แล้ว +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

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

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

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

    Nice tutorial and clear voice to understand.

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

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

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

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

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

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

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

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

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

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

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

    Great job
    But one small correction at 3:57 where can be used also with group by but before group by statement and having can be used on aggregate function as you said
    Like:
    SELECT MAX(Sal) FROM Employee
    GROUP BY EmpId
    HAVING MAX(Sal) > 1000;

  • @SanjaySharma-rl3xu
    @SanjaySharma-rl3xu 2 ปีที่แล้ว +1

    This is nice!

    • @SanjaySharma-rl3xu
      @SanjaySharma-rl3xu 2 ปีที่แล้ว +1

      We can use where when using group by also.

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

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

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

    You got a new sub. Thanks for your informative video.

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

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

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

    Nicely explained. Mam

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

    very helpful for the interview preparation

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

    We can get the aggregate by using where as well

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

    Thanks for sharing very well explained

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

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

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

    Nice way of explaining 👍

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

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

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

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

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

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

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

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

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

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

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

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

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

    Though I am using SQL(DBA) for 3 years, never focused much on the difference between UNION and UNION ALL. Today I gave an interview for one of the Big4 and I couldn't answer the difference between UNION vs UNION ALL. Finally landed here to understand the diff.

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

      ...... hopefully you don't use it because that's a massive difference LOL. You would ruin a dataset not using Union all. Union all is used 99.9% of the time. There would be no point to be removing duplicate rows.

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

      I think u just time pass if u don't know the difference sorry but it's true

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

    Thanks for the making videos! Its very very helpful

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

    Good one.

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

    Love these videos. Great job!

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

    That multiippllee rows❣️2:10

  • @Корица-ф7ц
    @Корица-ф7ц 3 ปีที่แล้ว

    Great explanation, thank you, dear

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

    Great👍

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

    Short,simple and clear explanation.. Really liked it so much:)

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

    Very helpful.. thank you..✨

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

    Simply explained, thank you :)

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

    Your notes are so well define easy to understand

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

    very nice voice, explained in good way

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

    achha pdhati ho, keep it .

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

    Amazing work keep it up

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

    Excellent explanation

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

    Thank you this has helped me a lot

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

    It's a great post @Crack Concepts (Sadia) , no matter how many years of experience we have ,it's always a good revision for any one
    # WHERE
    can be used with SELECT,INSERT,UPDATE statement
    # HAVING
    can only be used with SELECT statement

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

    Awesome voice and good explanation 😍

  • @srilakshmishetty-g2t
    @srilakshmishetty-g2t 5 หลายเดือนก่อน

    Please explain the difference between partition by and group by

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

    Execution order of clauses---
    1.From
    2.Where
    3.Group By
    4.Having
    5.Order by
    6.Select.

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

    Thanks for this video ...

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

    Most usefull .....
    Great work 👍

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

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

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

    Excellent video!

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

    Thanks - was so helpful

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

    what a voice WOW

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

    Good explanation

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

    You have a wonderful soft voice ..

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

    When to use IN and exists this I learned from your video

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

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

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

    Very well presented 🙏 👌👌👏👏

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

    Proper explanation with great presentation 😊

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

    To the point ,
    helped me.
    Thank you 😀

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

    Please make more difference between in Location and Add...

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

    Nice mam 👍 thanks 😊

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

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

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

    Good job 🙏

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

    Highly appreciate your work. Thanks

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

      @@Rajahmundry-timepass I ran all queries and they are working fine. If you can't run simple queries, stop blaming the teacher. You piece of shit.
      Stop spreading negativity for her. She is doing a great job. But stupid people like you can't understand anything.

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

    Awesome video

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

    Voice is pleasant

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

    Please upload full vedio of MS SQL

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

    Thank you ma'am. Cause of you i was able to crack the interview for my dream job ❤

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

      I’m so happy for you. Congratulations!

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

      @@crackconcepts thank you. Andbi am very much greatful to your videos. I learned more from your course then in 6 mths of my college

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

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

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

    Thank you sadia

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

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

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

    Nicely explained 🔥

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

    also add one more component --group by and partition by

  • @PrashantKumar-gc2pg
    @PrashantKumar-gc2pg 3 ปีที่แล้ว

    SELECT count(country) from customers where customerid>5;
    it is working

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

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