Lec-67: SQL Aggregate Functions - SUM, AVG(n), COUNT, MIN, MAX Functions | DBMS

Поделиться
HTML-код
  • Опубликовано: 5 авг 2024
  • 👉Subscribe to our new channel: / @varunainashots
    0:00 - Introduction
    1:16 - MAX
    3:25 - MIN
    4:20 - COUNT
    6:52 - SUM
    8:13 - AVG
    ► Structured Query Language (SQL)(Complete Playlist):
    • Structured Query Langu...
    Other subject-wise playlist Links:
    --------------------------------------------------------------------------------------------------------------------------------------
    ►Design and Analysis of algorithms (DAA):
    • Design and Analysis of...
    ►Computer Architecture (Complete Playlist):
    • Computer Organization ...
    ► Theory of Computation
    • TOC(Theory of Computat...
    ►Artificial Intelligence:
    • Artificial Intelligenc...
    ►Computer Networks (Complete Playlist):
    • Computer Networks (Com...
    ►Operating System:
    • Operating System (Comp...
    ►Database Management System(Complete Playlist):
    • DBMS (Database Managem...
    ►Discrete Mathematics:
    • Discrete Mathematics
    ►Compiler Design:
    • Compiler Design (Compl...
    ►Number System:
    • Number system
    ►Cloud Computing & BIG Data:
    • Cloud Computing & BIG ...
    ►Software Engineering:
    • Software Engineering
    ►Data Structure:
    • Data Structure
    ►Graph Theory:
    • Graph Theory
    ►Programming in C:
    • C Programming
    ►Digital Logic:
    • Digital Logic (Complet...
    ---------------------------------------------------------------------------------------------------------------------------------------
    Our social media Links:
    ► Subscribe to us on RUclips: / gatesmashers
    ►Subscribe to our new channel: / @varunainashots
    ► Like our page on Facebook: / gatesmashers
    ► Follow us on Instagram: / gate.smashers
    ► Follow us on Instagram: / varunainashots
    ► Follow us on Telegram: t.me/gatesmashersofficial
    ► Follow us on Threads: www.threads.net/@gate.smashers
    --------------------------------------------------------------------------------------------------------------------------------------
    ►For Any Query, Suggestion or notes contribution:
    Email us at: gatesmashers2018@gmail.com

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

  • @deepikajuneja2113
    @deepikajuneja2113 3 года назад +173

    Great video! Kudos to you, sir!
    Just a few corrections though:
    1. Instead of SELECT DISTINCT(COUNT Salary) FROM Emp; , the query should be SELECT COUNT(DISTINCT Salary) FROM Emp;
    2. Similarly, instead of SELECT DISTINCT(SUM Salary) FROM Emp; , the query should be SELECT SUM(DISTINCT Salary) FROM Emp; , and
    3. Instead of SELECT DISTINCT(AVG Salary) FROM Emp; , the query should be SELECT AVG(DISTINCT Salary) FROM Emp;

  • @aaryangarhewal
    @aaryangarhewal 3 года назад +58

    6:40 SELECT COUNT( DISTINCT Salary) FROM Emp; is the correct answer.

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

      ooh bro thanks i was also confused when it didnt worked

  • @hammadaftab618
    @hammadaftab618 Год назад +19

    One of the best RUclips channels for engineering and computer science students.👌👌

  • @bipulkumar9254
    @bipulkumar9254 5 лет назад +227

    It was a great video to learn SQL, Between kindly correct your query expression at time 6:17 to SELECT COUNT(DISTINCT(salary)) FROM employee; Thank you.

  • @eshas3930
    @eshas3930 5 лет назад +37

    I came across ur videos. And I swear u made my life easier. I wanted to join SQL classes, however couldn't join right now due to financial condition.. And I started following ur videos. I don think I need any coaching outside. Thanks sir.

  • @SahirJafri
    @SahirJafri 3 года назад +19

    Thank you so much for all your hard work!!! We really appreciate it!!

  • @rahulkushwaha8933
    @rahulkushwaha8933 4 года назад +31

    select sum ( distinct ( salary ) ) from emp;
    cos first we have to distinct the data and then we want the sum of that distinct data.

    • @GAUTAMKUMAR-or7rh
      @GAUTAMKUMAR-or7rh 3 года назад

      Yes I have same problem with that....
      We need to distinct salary then take sum.

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

      ruclips.net/video/5FsIa4Mp3ho/видео.html

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

      good bro....I also face the same problem and bcz of u it solve

  • @merafunpoint7864
    @merafunpoint7864 4 года назад +9

    i really appreciate ur videos. They helped me alot in clearing my concepts thanks for such good stuff

  • @shellnetpeak9466
    @shellnetpeak9466 3 года назад +3

    One question but the answer providing with complete details , that's superb. Thank you so much sir

  • @shrikant301991
    @shrikant301991 4 года назад +3

    You are a great teacher...much appreciated...thanks...no technical background required to understand your explanation..

  • @varunsonavne3344
    @varunsonavne3344 4 года назад +8

    Sir you deserve to be a best youtuber according to me you explaining topic very easily

  • @atulraj816
    @atulraj816 4 года назад +6

    It was a great video to learn SQL, But in this video kindly correct your query expression at time 6:17 to SELECT COUNT(DISTINCT(salary)) FROM employee;

  • @deepikareddy1073
    @deepikareddy1073 2 года назад +10

    I watch all of your videos and you are a saviour! You make us understand complex concepts in easier way,thanks a ton! I recommend your channel to my friends and they love it too:)

  • @satyamtiwari4917
    @satyamtiwari4917 4 года назад +4

    Bhai maza aa gaya aapse padh kr. sab log bhai ka channel subscribe kro aur bell dabana na bhulna🙏🙏🙏

  • @shetkari8465
    @shetkari8465 3 года назад +2

    Respected sir... You are really great...getting the concept clearly

  • @ghulammahdi6702
    @ghulammahdi6702 2 года назад +6

    I got Alpha in OS by understanding concepts from videos of sir now I am studying DBMS and now I again came back to sir lectures

  • @ElecPrizyy
    @ElecPrizyy 4 года назад +1

    Thank you so much sir, this video really helped me understand aggregate functions!

  • @universeboss4865
    @universeboss4865 4 года назад +14

    Sir ji query thori glt likh di apne
    Select COUNT(DISTINCT salary) from emp order by asc;

  • @jameskamgar
    @jameskamgar 5 лет назад +15

    select count(distinct(dept)) from emp;
    This is the correct one thanks

  • @girishbabu2697
    @girishbabu2697 5 лет назад +1

    Excellent explanation sir.... Love ur videos

  • @nivedithanataraj8985
    @nivedithanataraj8985 5 лет назад +1

    Thank you..sooo much sir
    Excellent teaching

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

    Thank you so much for all your videos. It is easy to understand

  • @alfiemcmillan262
    @alfiemcmillan262 5 лет назад +5

    Couldn’t get my head around this in classes thanks for your help

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

    Sir, you are the best. Your videos helped me a lot. Thank you

  • @sadafnoori2420
    @sadafnoori2420 5 лет назад +1

    Thank you so much . Ur videos helped me a lot

  • @abuzarakhoni6254
    @abuzarakhoni6254 4 года назад +1

    Thank you sir for teaching us and keep going

  • @ankitashahane1833
    @ankitashahane1833 Год назад +8

    select sum(distinct(salary) )from emp; will actually give sum of distinct salaries.

  • @adarshchourasiya4924
    @adarshchourasiya4924 5 лет назад

    Thanks you, sir aap bhaut he aaram aaram se samjhte ho to sab ek baar me samaj a jata h.... Again thank you!!

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

    Detailed explanation. Thank you.

  • @ayeshabutt7682
    @ayeshabutt7682 5 лет назад +2

    thank you sir for make this easy video for us

  • @md.arifmehedi6559
    @md.arifmehedi6559 2 года назад +1

    So nice ,
    This tutorial beneficiate me more detailing...
    thanks dear

  • @GaganDeep-mj5hi
    @GaganDeep-mj5hi 3 года назад

    Sir aap logic ko bahut hi acche sai samjhate ho. Great job.

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

    You way of teaching is outstanding sir😊

  • @Imrajeshsandhuvlogs
    @Imrajeshsandhuvlogs 4 года назад

    it was a great person and each in every ponit.

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

    Thank you so much sir Bahut hi achhi series hai ❤️🙏

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

    Bro kuch bhi hai pr aapne har ek aggregate ko har tarh ki situation se bta hai thanku bro ❤️

  • @kp_nagar
    @kp_nagar 3 года назад +5

    i think correct syntax is -.> SELECT count (DISTINCT salary) FROM emp; thanks for videos sir

  • @sharmilakhanal7849
    @sharmilakhanal7849 3 года назад

    Thank you so much sir for making these videos🙏🙏🙏🙏

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

    U r perfect trainer 👍thank u

  • @shivtejdande7156
    @shivtejdande7156 3 года назад +1

    Very Very Nice Teaching Sir ,thank you so much.

  • @inshkakar
    @inshkakar 2 месяца назад

    thanks alot for this information🥰.......today is my assignmnt and i get hlp from this video

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

    Sir you are Great , Excellent explanation

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

    Thanks a lot sir for such a understansting teaching 😊

  • @shabashvalishaik6568
    @shabashvalishaik6568 5 лет назад

    thank you so much sir excellent teaching...
    i

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

    Thank you bhaiya for this amazing explanation!

  • @sajansekhu8785
    @sajansekhu8785 4 года назад

    thnkk u so much sir..i m the biggest fan of u ...really..

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

    really so helpful ...thank sir.

  • @brightbrainpuzzles
    @brightbrainpuzzles 6 месяцев назад

    You are the best teacher in my life.

  • @shariqueshan
    @shariqueshan 5 лет назад +1

    Thanks, helpfull video

  • @rhythmtomar7872
    @rhythmtomar7872 3 года назад +20

    Sir ne employee table me apni salary sabse zada likhi h 🤣🤣🤭🤭🤭

  • @rahultilwani6813
    @rahultilwani6813 3 года назад +1

    Rahul Kushwaha
    1 year ago
    select sum ( distinct ( salary ) ) from emp;
    cos first we have to distinct the data and then we want the sum of that distinct data.
    9

  • @akshitakatiyar8170
    @akshitakatiyar8170 4 года назад +1

    Very nice, km time m jyada fayda🙏 I like uhhh

  • @animationcrust1993
    @animationcrust1993 3 года назад +7

    When I start watching your videos ...I automatically continued to watch one by one 😂😊

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

    Thank u so much sir.

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

    thank u so much Bro , Gr8 eforts for us

  • @Sahilverma-br1kl
    @Sahilverma-br1kl 5 лет назад +1

    All of ur videos are easily understandable ... Punjabi's are lit

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

    Lots of love hats off sir

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

    Simply super bro TQs

  • @sivamkumar6168
    @sivamkumar6168 7 месяцев назад

    Thanks you sir for this video.. Tomorrow is my presentation in our class... And your video is very helpfull really2 thanks sir..

  • @shubhamgophane5414
    @shubhamgophane5414 7 месяцев назад

    Thanks for the easy explanation🙂

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

    Now I will definitely score well in university exam. Thanks sir

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

    Super se bahut uper sir ..thanks alot ...

  • @subhassindhe7241
    @subhassindhe7241 5 лет назад +1

    Super bro Ur teaching

  • @pamartyhimaja6315
    @pamartyhimaja6315 4 года назад

    Thanks a lot...... It really helped me😊

  • @tejasasaldekar9674
    @tejasasaldekar9674 3 года назад

    You are so hardworking
    Keep it up

  • @Sahilverma-br1kl
    @Sahilverma-br1kl 5 лет назад

    Thanku sir for making this topic so clr

  • @adnanabrar7121
    @adnanabrar7121 5 лет назад +2

    Wow tusi great ho sir bohat acha andaz Hy parhanay ka keep going bro

    • @GateSmashers
      @GateSmashers  5 лет назад

      Thank You. Keep learning and sharing

  • @sayali8726
    @sayali8726 3 года назад +3

    Hello Sir , Your videos are too good . Please make videos on sql network traffic

  • @ananyapanwar9217
    @ananyapanwar9217 5 лет назад +2

    Thanku😊😊😊😊😊😊

  • @amandeep-op2up
    @amandeep-op2up 2 года назад

    Thnku so much sir this video is very helpful for me 🙏🙏🙏

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

    You will always remain in my youtube subscribed list.

  • @garimalove4everything
    @garimalove4everything 5 лет назад +1

    Sir..we love ur videos..if possible plz go through the syllabus of NVS PGT computer science syllabus..nd teach according to their syllabus till the NVS exam..plzzz it's a request sir..unka syllabus dekhne m hi bht dangerous hai

  • @Vanaja.Arigala
    @Vanaja.Arigala Год назад

    Thank you so much clear understand

  • @futurehousemusic7080
    @futurehousemusic7080 4 года назад +1

    Thank you sir you are awesome

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

    great work sir...!

  • @chaitanyahajare5915
    @chaitanyahajare5915 4 года назад +7

    Great content, no doubt on that! !! but the only problem I usually face is that videos are not in sequence in playlist, in this playlist also after Lec -50 there is direct Lec-55 andI couldn't find Lec-51 in this playlist. This is the same reason I left in between the 'Computer Organization' series..

  • @nehanoor2119
    @nehanoor2119 3 года назад

    Sir u r great God bless u inshaAllah

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

    Tank you!!

  • @rehanarain9242
    @rehanarain9242 4 года назад

    It is such a nice way helpfull

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

    Great video. It's like learning SQL in the easiest way possible. It is only possible by a great Teacher like Singla Sir. Thank you, sir.

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

    JAZAK Allah sir

  • @reshmaramesh3259
    @reshmaramesh3259 5 лет назад

    Great sirrrrr very helpfull

  • @ShirishaBethi
    @ShirishaBethi 3 года назад +1

    Nice explanation 👍

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

    Very Nice, Man!

  • @elliaisaac9039
    @elliaisaac9039 4 года назад

    Well Explained.

  • @muskan-co5yn
    @muskan-co5yn 4 года назад

    U r genius sir actually 👍👍👍👍👍👍👍👌👌👌👌👌👌

  • @studyrj404
    @studyrj404 5 лет назад +1

    Thank you sir

  • @omkarmali2663
    @omkarmali2663 3 года назад +1

    Channal deserves 1M

  • @poonamgautam6495
    @poonamgautam6495 5 лет назад +1

    thanks sir....

  • @pranjalgupta9427
    @pranjalgupta9427 3 года назад +1

    Thanks❤

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

    Thanks brother, From Bangladesh ❤❤😊

  • @Dynamic.programing
    @Dynamic.programing 5 лет назад

    Nice sir bhut easy way mai smjha diye

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

    Thankyouu so much sir😇

  • @namratanikam7566
    @namratanikam7566 3 года назад

    Very well explained😊😊👌

  • @chanchalgupta4837
    @chanchalgupta4837 5 лет назад +2

    Thnq uu soo much sr

  • @Gulam725
    @Gulam725 5 лет назад

    superb teaching sir ji

  • @user-ey3di9se6i
    @user-ey3di9se6i 3 месяца назад

    Sir thank you for helping student ❤❤❤

  • @ZohaibRajpootFromSheikhupura
    @ZohaibRajpootFromSheikhupura 8 месяцев назад +1

    Love from Pakistan 🇵🇰❤️
    Great work sir 😊

  • @babulaljangir8275
    @babulaljangir8275 5 лет назад +1

    thank u....

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

    Thankyou sir