#9 SQL Having clause Explained | in Tamil | SQL A-Z tutorial series for beginners

Поділитися
Вставка
  • Опубліковано 26 лис 2024

КОМЕНТАРІ • 104

  • @PriyankaKannan-zg3mi
    @PriyankaKannan-zg3mi 6 місяців тому +9

    select avg(salary),department from employee group by department having avg(salary)>55000 limit 2

  • @askerva
    @askerva Рік тому +33

    *
    select avg(salary),count(*),department from employee
    group by department
    having avg(salary)>55000 or count(*)>2 ;*

    • @saimanasab7386
      @saimanasab7386 5 місяців тому +1

      count(employee) thana varum?

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

      @@Manikandan-pq9dm question la count of employees more than 2 nu dha iruk so employees dha varum ig

    • @Laura-ih6je
      @Laura-ih6je 5 місяців тому

      ​​​@@Manikandan-pq9dm the second result is correct bro, in the first result you can use count(employee_id) if you want ,else it throws an error.
      select avg(salary),count(*), dept from employee group by dept
      having avg(salary) >55000 or
      count(*) >2
      This works well and good for me.
      You can't use " employee " since it is the table name.

  • @barath079
    @barath079 Рік тому +19

    join and subquery pathi explain Pannunga bro waiting so far

  • @issacdms8098
    @issacdms8098 Рік тому +8

    Thank you for ur python course, it's use full form me 🙏🙏🙏Hi bro plz conduct full stack developer course it will be most helpful for me becoz ur teaching is easy to understand,

  • @krishna-iq9dh
    @krishna-iq9dh Рік тому +2

    You are the best teacher

  • @ramakrishnanl4997
    @ramakrishnanl4997 8 місяців тому +5

    Select department from employees group by department having avg(salary) > 55000 or count(employee_id) > 2;

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

    last question's answer:
    select department from employee group by department having avg(salary)>55000 || count(department)>2
    Hope you all get this. Or else correct it if I'm wrong🙂

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

      I guess he has provided two requirements. Here they are,
      Select departments ( select avg(salary), departments from group by departments) from ;
      Select departments ( select count(*) as no_of_employees, departments from group by departments having no_of_employees >2) from ;

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

      @@devanathanelangovan4961 select avg(salary),count(department) from employee group by department having avg(salary)>55000 or count(*)>=2;

  • @sumanprasad7283
    @sumanprasad7283 Рік тому +5

    SELECT avg(salary), department from employee
    group by department
    having avg(salary)>$55000
    limit 10;

    • @jjbala2198
      @jjbala2198 11 місяців тому +1

      Bro can you explain why should we use limit 10 😢😢
      I tried without limit it's actually worked

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

      @@jjbala2198 because they are haing more than 2 employees..Instant of using this you can try this bro:select avg(salary),count(department) from employee group by department having avg(salary)>55000 or count(*)>=2;

  • @misty9483
    @misty9483 Рік тому +14

    Please upload remaining videos of SQL soon bro. Waiting for so long🥹

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

    Bro Html And Css Video Detail ah Pottu irrukinga Learn panna Use full ah irruku So Apdye Java Script Konjam Detail ah Video podunga Bro ❤

  • @sharanraj8322
    @sharanraj8322 5 місяців тому +1

    select avg(salary),department from employee group by department order by avg(salary) asc limit 2

  • @sivasankaris6186
    @sivasankaris6186 8 місяців тому +2

    Select avg(sal),count(*)department from employees group by department having avg (salary)>55000 and count(*) > 2;

  • @Laura-ih6je
    @Laura-ih6je 5 місяців тому +1

    select avg(salary),count(*), dept from employee group by dept
    having avg(salary) >55000 or
    count(*) >2

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

    Select avg(salary), department from employee group by department having avg(salary) > 55000
    Result grid
    61000,58500

  • @praveenvenkatesh1903
    @praveenvenkatesh1903 Рік тому +5

    Bro foreign key pathi podunga pls

  • @vasukisuja4076
    @vasukisuja4076 Місяць тому +1

    Bro SQL la Ella topics um cover pannunga innum neraiya topics irukku

  • @trendingspiledup5323
    @trendingspiledup5323 2 місяці тому +5

    Bro DCL, VIEWS enu db objects lam solitharalaye ana playlist end airuchi😭Humble req to finish all the topics involved.

  • @abarnatl3343
    @abarnatl3343 27 днів тому

    Select departments,avg(salary) from employee group by department having salary>55000 or count(department)>2

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

    Please upload Java script playlist brother.
    Your way of teaching is Clear.

  • @emma_heartsquad
    @emma_heartsquad 7 місяців тому +2

    Anna, when my mam taught me at school I did not get anything but you made me understand having clause in just 5 mins. Thank you so much😇
    but what is the answer for this question 4:43 it's driving me mad with out the answer. I solved the first half of the question but I can't even understand the last part of the question.
    select avg(salary),dept from employee group by dept having avg(salary)>55000
    [ I hope this is the answer for the first half🤓]

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

      select avg(salary),count(department) from employee group by department having avg(salary)>55000 or count(*)>=2;

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

    select avg(salary) from employee group by department order by avg(salary) asc limit =2

  • @nivetha.12
    @nivetha.12 Рік тому +7

    Answer for the question is select avg( salary), department from employee group by department having avg(salary)>55000 limit2

  • @syedashfaaqali1395
    @syedashfaaqali1395 6 місяців тому +2

    select avg(salary) as avg_salary, department from employee group by department having avg_salary

  • @adhi1666
    @adhi1666 Рік тому +2

    Bro JavaScript video podunga pls

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

    Select avg(sal) from employees
    Group by department
    Having avg(sal) < 55,000 or count (*)>2

  • @narayananc.p1850
    @narayananc.p1850 8 місяців тому

    select avg(salary),department from employee group by department having avg(salary)>55000 is the answer

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

    Javascript course podunga bro

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

    SELECT AVG(salary), department FROM employee
    GROUP BY department
    HAVING AVG(salary)> 55,000
    OFFSET 2;

  • @Sowmi-tn2zt
    @Sowmi-tn2zt День тому

    Power Bi videos podunga bro

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

    Waiting for next part bro

  • @nvsbflims4624
    @nvsbflims4624 5 місяців тому +1

    bro completed is this correct
    select dept,avg(salary),count(dept) from employee group by dept having avg(salary) > 55000 or count(dept) > 2

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

    Pls upload javascript workshop video

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

    SELECT
    AVG(salary), COUNT(*), department
    FROM
    employee
    GROUP BY department
    HAVING AVG(salary) > 55000 OR COUNT(*) < 2;

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

    Select Count(EmployeeID),Department From Employee Group by Department Having avg(Salary)>55000 limit 2

    • @MasterJD-pz4lz
      @MasterJD-pz4lz 9 місяців тому +1

      Wrong bro

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

      @@MasterJD-pz4lz ohh ok if you don't mind please explain.nanu therinchu kura

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

    Anna nenga irukarathu nalla yenaku romba romba easya html css js kathukitta romba romba thanks
    And finally last request anna c & c++
    Video poduvigala

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

    Super bro

  • @arunazhagiri1908
    @arunazhagiri1908 Рік тому +5

    After finishing thiss we want javascript bruhhhhhhh😢

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

    Thanks bro put next video asap

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

    Last Question Answer :-
    select avg(salary) , count(*), department
    from employee
    group by department
    having avg(salary) > 55000.0000 or count(*) > 2;
    Output:
    avg(salary) count(*) department
    61000.0000 2 IT
    58500.0000 2 FINANCE
    Reason:
    IT and Finance Department Has Average Salary more than 55,000 , So it is displayed.
    What about Departments with more than 2 Employees!!,
    Every Departments in the Data has only 2 Employees, So Even if you omit this Condition "count(*) > 2", The Output will be Same becoz there is No department with more than 2 Employees.

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

    Bro fan request, pls upload C programming language 😢

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

    SELECT count(*) AS No_employees, department FROM EMPLOYEE GROUP BY DEPARTMENT HAVING No_employees>2

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

    🎉 first comment

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

    Can you please explain Triggers ?
    It would be very useful for me !

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

    Bro nenga SQL Join pathi full video podunga bro

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

    Bro plz upload java series

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

    Bro security mechanicsem pathi video pooduga broo

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

    And clear.then how I can do it in mobile phone

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

    Broo RPA pathi solunga

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

    Django framework using python sollithanga

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

    Bro school students LinkedIn use pannalama bro school students eppadi use pandra dhu bro ........

  • @Vishnu-rh1rx
    @Vishnu-rh1rx Рік тому +1

    Java script upload pannunga bro...

  • @shalini.s3310
    @shalini.s3310 19 днів тому

    pls upload remaining topics in sql bro

  • @miamilogini
    @miamilogini Рік тому +2

    Bro..how to print prime numbers less than or equal to 1000 ..in mySQL intha ques CLR panu anna

  • @KARKABIL-bq5gi
    @KARKABIL-bq5gi Рік тому

    Bro EEE engineering finished next game developer enda course study pannanu video poduga bro

  • @Barat-l9l
    @Barat-l9l Рік тому

    Bro...pls make a vedio on python about how to share one file contents into another file .....

  • @SaiKumar-tt2eo
    @SaiKumar-tt2eo Рік тому

    Bro Excel course poduga..

  • @janakiraman.v2002
    @janakiraman.v2002 Рік тому

    Bro Java tutorial podunga

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

    Bro data analytic full cours please make 💯 s

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

    👏👏👏...

  • @PraveenPraveen-oh1dh
    @PraveenPraveen-oh1dh Рік тому +1

    Bro javascript tutorial podu bro please

  • @prabavathy.r7089
    @prabavathy.r7089 Рік тому

    Hai anna please english fluent pesrathuku learn pandrathuku yethna website soluga anna. Roomba usefull ah irukum

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

    Bro Metaverse and game development job opportunities video podunga bro.

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

    R Programming podunga bro

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

    Upload javascript

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

    👍

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

    do people use Version Control Software for SQL code?
    how do people keep version control of SQL code?

  • @ABDURRAHMAN-rl8mh
    @ABDURRAHMAN-rl8mh 10 місяців тому

    answer for last question?

  • @user-db4pq1zz8o
    @user-db4pq1zz8o Рік тому

    Anna Networking Class edunga naa

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

    sir video call application js how to create

  • @v.yukeshwaranbca-7802
    @v.yukeshwaranbca-7802 Рік тому

    Bro what about join command bro

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

    Bro laptop illa enna bro pandrathu but I was study the theorically

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

    Bro..pls put Java script video bro

  • @AnuSha-jn2si
    @AnuSha-jn2si Рік тому

    Bro c language poduga

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

    Bro python ku pota mari varaha edachu oru language full ha poduga bro

  • @Bhavani_Official-d9x
    @Bhavani_Official-d9x 2 місяці тому

    bro pls ipdi zoom panathinga pathutae irukura appo kannu valikuthu

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

    Integrating SQL in a PL/SQL program la integrating enna bro.????

  • @SathishKumarR-e1n
    @SathishKumarR-e1n 10 місяців тому

    Why was the answer to the last question not provided? Are you trying to use your strategy to encourage joining your paid class? If the answer to the last question was provided, it would be useful to us.

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

    Hi bro pls do. Net

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

    why there is no JS video in your video list

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

    Hii

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

    Hacking online course erutha soluga bro

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

    Javascript video podunga bro plssss😢😢

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

    Broooii

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

    C# please😵

  • @Saheel-bz4lu
    @Saheel-bz4lu Рік тому

    bro why courses not available ?

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

    What is IT work? Anga yanna pannaum sollunga proo plss

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

    Select avg(salary),count(*) department from employee group by department having avg( salary )>55000 or count(*)2

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

    select avg(salary),department from employee group by department having avg(salary)>55000 limit 2

  • @sudeep.r9784
    @sudeep.r9784 17 днів тому

    Select avg( salary),department from employee group by department having avg(salary) >55000