having clause in sql | Oracle Database

Поделиться
HTML-код
  • Опубликовано: 30 авг 2021
  • Oracle Database Full Course 👇👇
    • Oracle Database | SQL
    Don't forget to tag our Channel...!
    #oracledatabase
    #oracle
    #sql
    #havingclause
    #sqlhavingclause
    #groupbyclause
    #sqlgroupbyclause
    #sqlselectcommand
    #oraclesql
    #oracle11g
    #ask4help
    #LearnCoding
    || Content ||
    1. voice 🔊 :- akhilesh
    2. writer ✍ :- ankush
    Thank You
    👌👌👌

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

  • @RavinderSingh-zx3ho
    @RavinderSingh-zx3ho Год назад +2

    Last query is only reflecting the result with "WHERE" clause, where ESAL>20000. This is why the output is count of sales from (Row 7 & Row 10), count of HR (Row 5 and Row 11) and count of Product (Row 8).
    Output:
    HR 2 (Row 5 and Row 11)
    Product 1 (Row 8)
    Sale 2 (Row 7 & Row 10)
    This query is not even considering the having clause. This tutorial is not serving its purpose "having clause in sql".

  • @shahbazkhan-pv8rg
    @shahbazkhan-pv8rg Год назад +1

    you are great teacher thanks bro

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

    DBMS mcqs kar na bhaiya

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

    this vedio is helpfull✨

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

    Wow sir I like your video a lot 🥰😍

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

    Thanks sir 🙏

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

    Ok bhai makes some important mcqs of computers

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

    Good Teacher ho ap very nice Beautiful AP ka bohat shakira ap mari zanding ma hay.Thanks Sir😍💐👍Thanks 22Jan I am Pakistani

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

    can we use having clause before group by statement??? My system is showing error in that code. If i use having statement after group by than the code is giving me correct result.

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

    Aapka video lazawab h sir adv. Java or android development par bhi video bna dijiye please🙏🙏🙏🙏

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

    U are great sir ...plz upload full java framework videos .thank you sir

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

    Awesom sir 👍👍

  • @asharaju4169
    @asharaju4169 10 месяцев назад

    but having clause perform its operation only after groups are formed right then how you use it before GROUP BY?????please answer

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

    Make a complete playlist on DSA with java

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

    Sir apki videos bahut acha hai ..mera frnds Sab apko hi follow kar rahe hain

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

    thank you sir

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

    Great

  • @bhartirajput4868
    @bhartirajput4868 Год назад +3

    kindly make more such videos on sql interview questions.

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

    thanks

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

    11:30 mein background mein paanipuri wala tha 😋😋

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

    Best app konsa hai coding ke liye

  • @sangamsharma7832
    @sangamsharma7832 4 месяца назад

    😊

  • @RavinderSingh-zx3ho
    @RavinderSingh-zx3ho Год назад +10

    Correct query should be:
    SELECT DNAME, COUNT(DNAME), SUM(ESAL)
    FROM EMP
    WHERE ESAL > 20000
    GROUP BY DNAME
    HAVING SUM(ESAL)>25000;
    OUTPUT:
    DNAME COUNT(DNAME) SUM(ESAL)
    HR 2 86000
    SALE 2 62000
    Only HR and SALE are the department with:
    1. where ESAL is >20000
    2. having sum of salary > 25000.
    Hope it helps for the people who'll visit this video in future.

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

      Hi sir, please suggest me which is the best RUclips channel for learning sql

    • @RavinderSingh-zx3ho
      @RavinderSingh-zx3ho Год назад +2

      @@mohdayaz4417 Follow the SQL videos of this channel (recommended) as well as follow 1 or 2 more channels simultaneously. That way you'll know if there is gap in your learning videos, it will keep you well informed and will get your hands on more than basic SQL. There is no single channel which could provide whole picture of understanding SQL and try to follow those channels whose videos are uploaded in less than 2 years ago because of regular updates in sql.

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

      @@RavinderSingh-zx3ho thankyou for replying that was really helpful

    • @Mr_Memer01_
      @Mr_Memer01_ 8 месяцев назад

      Can you please explain what's the main use of having and group by?

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

    💘❤💝💓

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

    what is ASK change?
    FDM, wDM and TDm what?

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

    Sir sub query video nhi he kya mil nhi rha

  • @SumanDevi-jf5dw
    @SumanDevi-jf5dw 2 года назад

    Sir class 11 cs ki bhi video aayegi

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

    A message is either a queary or a response..... DNS

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

    you are a great youtuber bro me hamesha apke sath rahunga
    me har din mere dost ko keheta hu ki apki channel ko subscribe kare

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

      Thank you so much debaraj, thank you

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

      @@LearnCodingOfficial sir java ka koi book recommend kijiye with author name

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

      @@LearnCodingOfficial thx sir

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

      Aap 3-4 books download kro aur padho jo best lge usko padho aur baaki ko delete kr do

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

      @@LearnCodingOfficial sir aapne kis book se padha h

  • @RavinderSingh-zx3ho
    @RavinderSingh-zx3ho Год назад +5

    2nd condition can be achieved by using "WHERE" clause as mentioned below:
    SELECT DNAME, ESAL FROM EMP
    WHERE ESAL >= 30000
    group by NAME, ESAL;
    Having clause was introduced coz where clause cannot be used with aggregate functions like having count(*), having(sum), having(max), having(Avg), etc. We cannot use where count(*), where(sum), where(max), etc. in SQL.
    This is the main reason why we can't use 'where' in some places and 'having' clause was introduced.

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

      Pls help me out with learning sql...

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

      Pls give me ur what's app number sir I want learn sql

  • @PawanKumar-ic3td
    @PawanKumar-ic3td 2 года назад

    Excellent work sir nice

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

    sir mere ye questions per lecture banaye...

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

    Hiii sir plz provide a java full pdf notes

  • @50_kunalkanherkarpatil74
    @50_kunalkanherkarpatil74 Год назад +1

    Upload all core Java

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

      Core java full course 👇
      ruclips.net/video/VZg5r9i90z0/видео.html

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

    Last vala query samjh nhi aya usme sum kaise aya ye btaiye

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

    Do we use "where" with aggerate Function

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

    Thanks bhya... Par mere mann mein ek sawal hai apka naam kya hai??

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

      Actually we are two guy, Ankush & Akhilesh.
      Voice provided by Akhilesh and Hand written notes prepared by Ankush

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

      @@LearnCodingOfficial Thanks ☺
      Amazing..👍🏻👍🏻

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

    Payton par video banao sir ji or full video or note ke and pdf ke sath banao

  • @AissmsDesai
    @AissmsDesai 8 месяцев назад

    Sir what is difference in having clause and where clause??

    • @sohailstark3229
      @sohailstark3229 7 месяцев назад +1

      Where clause is used to apply condition on records. Having clause is used to apply conditions on groups

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

    Sir dpi ka ha?

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

    the request and release of the resource are.......

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

    sir protocol per ap ka vedio nehe mila?

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

    Sir python k videos kab aayen ge ???

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

    Clause

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

    Plzzz🙏🙏🙏🙏🙏🙏

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

    one's complement of string..... 01010100

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

    Yrr meri smj m kuch nhi aa rha h abhi first time h koi h sikhane wala to msg kr do plzz

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

    Most important computer mcqs

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

    Last vala query samjh nhi aya usme sum kaise aya ye btaiye