GROUP BY with Aggregate functions in SQL statement

  Рет қаралды 107,321

SQL with Manoj

SQL with Manoj

Күн бұрын

Пікірлер: 106
@alno1
@alno1 5 жыл бұрын
Thank you so so much! I finally understand 100% how to use group by clauses!
@AhamedKabeer-wn1jb
@AhamedKabeer-wn1jb 3 жыл бұрын
Thank you.. Well explained..
@BronX005
@BronX005 2 жыл бұрын
Seriously needed this video... thank you sir 🙏
@timmytesla9655
@timmytesla9655 2 жыл бұрын
You have no idea how this has helped me. Thank you very much for this video.
@soujanyakatuku1617
@soujanyakatuku1617 5 жыл бұрын
excellent information and good explanation.......
@Vantamanta
@Vantamanta 4 жыл бұрын
Really good video with Good examples and nice explanation.
@osoriomatucurane9511
@osoriomatucurane9511 10 ай бұрын
Awesome tutorial, concise and crystaal clear!
@SAK-y6j
@SAK-y6j 5 жыл бұрын
Excellent
@MrBauer73
@MrBauer73 3 жыл бұрын
Very helpful :) thank you
@supreranap9831
@supreranap9831 5 жыл бұрын
Nice explanation tq
@rave.201
@rave.201 2 жыл бұрын
Bless u dude, finally can do the "invalid select list" issue :)
@scottarena6808
@scottarena6808 6 жыл бұрын
Excellent video. I am currently studying, on my own to become a DBA--this has been very helpful. Thank you for the video!
@jorgepadron2426
@jorgepadron2426 4 жыл бұрын
Excellent!
@amralkhatib5031
@amralkhatib5031 5 жыл бұрын
Thanks man i have seen about 10 videos but your video is the best
@chitradevaki4966
@chitradevaki4966 4 жыл бұрын
Thanks a lot very useful to write queries..very nicely explained covering all the scenarios
@Daniel.E_Rides
@Daniel.E_Rides 3 жыл бұрын
Great tutorial! Thanks
@Hanna-bf3ug
@Hanna-bf3ug 2 жыл бұрын
can you upload more video's please. you are one of these people who knows how to explain. Thanks so much I watched more than 10 video's trying to understand group by and finally i found you. thanks more please
@SQLwithManoj
@SQLwithManoj 2 жыл бұрын
Thanks so much Hanna... Could you plz tell me the topics that you like I should cover?
@Hanna-bf3ug
@Hanna-bf3ug 2 жыл бұрын
@@SQLwithManoj Thanks for the quick replay Manoj. Topics like store procedures, functions, subqueries, joins all the good stuff 🙂. Thanks again
@supreranap9831
@supreranap9831 5 жыл бұрын
Good
@dogmahacker8278
@dogmahacker8278 7 жыл бұрын
SOOOOOOOOOOOOOOOOO much better than my teacher!
@majidshahani
@majidshahani 6 жыл бұрын
The way you explain is really great. Thanks Manoj sahib.
@JohnJamalSingh
@JohnJamalSingh 6 жыл бұрын
Thanks so much Manoj, really its useful....
@maf7764
@maf7764 4 жыл бұрын
thank u so much
@techtricks625
@techtricks625 2 жыл бұрын
This is really helpful for me ☺️ Thank you so much 😊
@pinakim11
@pinakim11 5 жыл бұрын
Thanks Manoj,nice video. You explained nicely.
@bingxiao1008
@bingxiao1008 5 жыл бұрын
It is really helpful. The explanation is concise and easy to understand. Thank you so much!
@kspkumar7507
@kspkumar7507 4 жыл бұрын
THANK YOU SO MUCH
@harishbabu6450
@harishbabu6450 7 жыл бұрын
Very nice Manoj, clear explanation !
@divyakakkirala6088
@divyakakkirala6088 4 жыл бұрын
Thnq so much manoj, finally I understand how to write queries in SQL , one suggestion is , when am watching videos thorough mobile, there is no mobile compatibility for videos, mean to say SQL window not clarity can you check this.
3 жыл бұрын
THANK YOU!! This guide was super informative!
@somnathgiri356
@somnathgiri356 5 жыл бұрын
After so many searches it's seems I clicked on the correct video.
@anilkumaryadav106
@anilkumaryadav106 6 жыл бұрын
helpful,good job
@ASHOKKUMAR-fj6ms
@ASHOKKUMAR-fj6ms 6 жыл бұрын
Its excellent class , thank you sooooooooooooooo much manoj . your rocking man ,your explanation are simple super.
@princenishad1
@princenishad1 5 жыл бұрын
this video help me a lot thank you so much sir
@mohammedalshami3937
@mohammedalshami3937 6 жыл бұрын
Nice Explanation
@sravanireddy2042
@sravanireddy2042 7 жыл бұрын
nice explaination and thanks u so much mr.manoj
@omojowoleke7130
@omojowoleke7130 6 жыл бұрын
Tank u for a great work.
@DybFrostDocuments
@DybFrostDocuments 6 жыл бұрын
Super video - thanks!
@PrasantKumarV76
@PrasantKumarV76 6 жыл бұрын
You made it very easy and clear to practice. I did lot of experiments with the help of this. Appreciate your effort. Besides, I'm unable to find Joins video done by you. Can you provide the link or create video with some complex examples of various joins? Thanks!
@RiteshKumar-qr7pq
@RiteshKumar-qr7pq 4 жыл бұрын
I watched lot of video on Group By clause but finally i got to understand what exactly it is thank u sir please make a video on Having clause in sql
@SQLwithManoj
@SQLwithManoj 4 жыл бұрын
HAVING clause video... kzbin.info/www/bejne/bqGnZKueaLKfhMk
@harshadas3942
@harshadas3942 7 жыл бұрын
Thanks a lot. This is really helpful. great explanation!!!!
@umairzafar2067
@umairzafar2067 7 жыл бұрын
Great job...
@crazytalkmeet5222
@crazytalkmeet5222 6 жыл бұрын
thanks for your explanation. its really helpfull
@gulzarsingh3681
@gulzarsingh3681 3 жыл бұрын
How to select other columns without aggregate. eg: select col1, col2, col3, col4, col5 from tab1 where col3=xval group by col5 . In Postgres
@ManojPandeyManub22
@ManojPandeyManub22 3 жыл бұрын
GROUP BY clause does not allow you to have columns that are not part of the GROUP-BY clause. Try using ROW_NUMBER() with Aggregate functions, link: sqlwithmanoj.com/2010/08/10/using-over-and-partion-by-clauses-with-aggregate-functions-in-sql-server/
@paragawaken
@paragawaken 6 жыл бұрын
Very helpful.
@oelh3426
@oelh3426 6 жыл бұрын
Thank you a lot , pro explanation
@pinkilihitkar8093
@pinkilihitkar8093 4 жыл бұрын
VERY USEFUL...BUT VOICE WERE LOW IN WHOLE VIDEO
@althafmohammed5285
@althafmohammed5285 6 жыл бұрын
Thanx manoj
@johnmwenda353
@johnmwenda353 7 жыл бұрын
thanks... awesome explanation
@broderick123456789
@broderick123456789 4 жыл бұрын
Explained this beautifully.... I must add though even in your example, the glass ceiling was present. In every department Males had a higher salary than females lol
@tusharjadhav4625
@tusharjadhav4625 7 жыл бұрын
Thanks a lot sir, video is very helpful
@kessangla7864
@kessangla7864 6 жыл бұрын
thank you sir
@shounakrendalkar2732
@shounakrendalkar2732 3 жыл бұрын
Really helpful!!!!!!!!!
@amargorsipati9514
@amargorsipati9514 7 жыл бұрын
Excellent bro
@satishkumargarepalli3692
@satishkumargarepalli3692 6 жыл бұрын
soooo good do you have any videos related to store procedures, user defined functions,triggers??? please provide me the urls only t-sql i am asking
@rajat_bisht_vlogs
@rajat_bisht_vlogs 3 жыл бұрын
Sir how can we use Group by , count and join together?
@SQLwithManoj
@SQLwithManoj 3 жыл бұрын
Here is an example: SELECT D.DeptName, COUNT(E.EmployeeID) FROM Department D JOIN Employee E on E.DeptID = D.DeptID GROUP BY D.DeptName
@SQLwithManoj
@SQLwithManoj 3 жыл бұрын
If you need with WHERE & HAVING clause as well... check here: Here is an example: SELECT D.DeptName, COUNT(E.EmployeeID) FROM Department D JOIN Employee E on E.DeptID = D.DeptID WHERE E.Gender = 'Male' GROUP BY D.DeptName HAVING COUNT(E.EmployeeID) > 10
@stephenr.kutuahn8763
@stephenr.kutuahn8763 7 жыл бұрын
great,thanks
@davidlewisn1017
@davidlewisn1017 2 жыл бұрын
Hello,Great work, could you offer some help i am stuck on using sum and group by- your help is much appreciated.David
@supreranap9831
@supreranap9831 5 жыл бұрын
Hi Manoj please explain joins
@sudeshhinge5391
@sudeshhinge5391 8 жыл бұрын
Thank You Sir !! Thanks a lot...............
@mahdifardi6822
@mahdifardi6822 6 жыл бұрын
so useful :))
@78057530
@78057530 6 жыл бұрын
Awesome Bro !
@althafmohammed5285
@althafmohammed5285 6 жыл бұрын
I got confident aftr seeng dz
@achulu87
@achulu87 7 жыл бұрын
Nice bro 👍
@kajoldave8122
@kajoldave8122 2 жыл бұрын
Write a query to list down employee details such as EMP_ID, FIRST_NAME, LAST_NAME, ROLE, DEPARTMENT, and EMP_RATING grouped by dept. Also include the respective employee rating along with the max emp rating for the department. how to do this? please helppppp
@yogeswarannatarajan7315
@yogeswarannatarajan7315 6 жыл бұрын
Thank you
@oblivious36
@oblivious36 7 жыл бұрын
Excellent, Cheers
@naresh90sharma
@naresh90sharma 6 жыл бұрын
Hi sir good evening, sir I'm using the query in Excel data connection , I don't have permission for data base one mstp , Sir my question is how to filter group sum & where condition like type = e and type = I type = as,
@Curious_Stranger
@Curious_Stranger 4 жыл бұрын
Each GROUP BY expression must contain at least one column that is not an outer reference.
@kohli2419
@kohli2419 2 жыл бұрын
I want to add colum to a table while using the group by clause without sorting the data ,I don't need the col in group by but I need that column without grouping , I have already used the group by by another column
@Jeremy-mr2qi
@Jeremy-mr2qi 5 жыл бұрын
papa bless
@maryamaa556
@maryamaa556 2 жыл бұрын
Thank you!!
@jericunabia3584
@jericunabia3584 Жыл бұрын
How about i want to see the average only the engineering?
@tafiyer
@tafiyer 4 жыл бұрын
When you do count *, isnt it counting all vs number of employees ?
@SQLwithManoj
@SQLwithManoj 4 жыл бұрын
COUNT(*) means counting all rows, irrespective of what data it is, can be duplicate also.
@daniwalker1996
@daniwalker1996 4 жыл бұрын
in your video the record is repeating more than one time is there any way to fix it ?
@sumaiyasumi2610
@sumaiyasumi2610 5 жыл бұрын
why u put order by after group by clause, If we dont use order by what will be difference, I didnt get it . sorry.
@ManojPandeyManub22
@ManojPandeyManub22 5 жыл бұрын
The ORDER BY clause, after GROUP BY clause is added to sort the record set by Departments & Gender.
@stafaninadar964
@stafaninadar964 6 жыл бұрын
Can u combine count with average
@ManojPandeyManub22
@ManojPandeyManub22 6 жыл бұрын
yes, you can , please check at 11:48 time
@stafaninadar964
@stafaninadar964 6 жыл бұрын
@@ManojPandeyManub22 I need to apply average with count value
@ManojPandeyManub22
@ManojPandeyManub22 6 жыл бұрын
can you please explain what you are trying to do? Like input and expected output, or query?
@mdkhrafi
@mdkhrafi 5 жыл бұрын
Can we use 1.Having (condition) AND (condition) 2.Having (condition) OR (condition)
@SQLwithManoj
@SQLwithManoj 5 жыл бұрын
Yes, you can have AND & OR condition with HAVING clause, so that you can filter on aggregated data. If you want to filter on grouping columns then use WHERE cause.
@mdkhrafi
@mdkhrafi 5 жыл бұрын
@@SQLwithManoj Thanks, yeah as far as I knew that we can use OR with WHERE also but can't use AND. Thanks again
@SQLwithManoj
@SQLwithManoj 5 жыл бұрын
you can use AND with WHERE clause also !!!
@mdkhrafi
@mdkhrafi 5 жыл бұрын
Yes, I actually meant 2 rows at a time.
@SQLwithManoj
@SQLwithManoj 5 жыл бұрын
No, you can't use HAVING clause 2 times in a single query. But, if you have any such requirement then it could be done the other way. Let me know if you need some help?
@jericunabia3584
@jericunabia3584 Жыл бұрын
How about i want the average only in engineering.??? display only the average in engineering???
@christiancampos8806
@christiancampos8806 8 жыл бұрын
help me answer my script : SELECT COUNT(Make, Model, ProcessorType) as "Number Available" FROM CR_computer;
@SQLwithManoj
@SQLwithManoj 8 жыл бұрын
you just need to have your query like this: SELECT COUNT(*) as "Number Available" FROM CR_computer;
@bbibek1
@bbibek1 6 жыл бұрын
SIR CAN U EXPLAIN GROUP BY WITH ROLL UP AND CUBE..
@SQLwithManoj
@SQLwithManoj 6 жыл бұрын
sure, please stay tuned... will post shortly !!!
@subratamitra6668
@subratamitra6668 5 жыл бұрын
Plz say in hindi
@mrsmariam7952
@mrsmariam7952 5 жыл бұрын
Deutsche?
@kessangla7864
@kessangla7864 6 жыл бұрын
thank you sir
@karthickrk8918
@karthickrk8918 7 жыл бұрын
thank you sir
MAGIC TIME ​⁠@Whoispelagheya
00:28
MasomkaMagic
Рет қаралды 38 МЛН
CAN YOU DO THIS ?
00:23
STORROR
Рет қаралды 47 МЛН
Wait for the last one 🤣🤣 #shorts #minecraft
00:28
Cosmo Guy
Рет қаралды 23 МЛН
WHERE clause in SQL Server (DML, Filter table rows)
15:55
SQL with Manoj
Рет қаралды 46 М.
SQL Window Functions in 10 Minutes
10:13
Colt Steele
Рет қаралды 84 М.
SQL TUTORIAL - GROUP BY, HAVING, Aggregate Functions
22:44
BeardedDev
Рет қаралды 3,4 М.
Expert Level SQL Tutorial
23:27
James Oliver
Рет қаралды 156 М.
Advanced Aggregate Functions in SQL (GROUP BY, HAVING vs. WHERE)
6:00
Becoming a Data Scientist
Рет қаралды 258 М.
SQL Aggregation queries using Group By, Sum, Count and Having
10:01
Joes2Pros SQL Trainings
Рет қаралды 328 М.
MAGIC TIME ​⁠@Whoispelagheya
00:28
MasomkaMagic
Рет қаралды 38 МЛН