
About this episode
After having talked about all the SQL Aggregate functions, there's one more topic that goes hand in hand with what we've already learned… The group by keyword.
This particular keyword allows us to take a bunch of data and mash it all together into matching groups and then perform aggregate functions on those groups (like sum and avg).
You might ask yourself why you'd want to "mash together" a bunch of data. The answer to this is best explained with an example, but let me try to put it in regular words before we jump into our example. Grouping data together allows us to look at aggregate data in relation to unique piece of data (or rows), a typical use case would be to group all the matching data together so you can get a count of the number of occurrences of specific data. An example related to grouping and counting could be a presidential election, you'll have all the votes in a database and you'll want to group that data together to get the total votes for each unique candidate...
For more info, check out the show notes via http://howtoprogramwithjava.com/session48
Get every episode summarized
Each time How to Program with Java Podcast publishes, we email you a written briefing from the transcript — the topics, who appeared, and any specific claims, with the ad reads skipped.
Email me new episodesFree for 3 shows. No card needed.
Hosts & guests
No transcript yet
This episode has not been transcribed. Request it and it moves to the front of the queue.
More episodes
More from How to Program with Java Podcast

I'm Losing Contracts to AI. Here's Why That's Actually Good Newsde
How to Program with Java Podcast

What Happened to the Bootcamp, Why AI Changed Everything, and What's Next
How to Program with Java Podcast

Unlocking Your First Coding Job: The Realities and Solutions
How to Program with Java Podcast

Alex almost quit coding forever while in this Bootcamp
How to Program with Java Podcast