Logo

    groupby

    Explore "groupby" with insightful episodes like "Hibernate Group By", "Hibernate Group By", "Hibernate Group By", "SQL Group By" and "SQL Group By" from podcasts like ""How to Program with Java Podcast", "How to Program with Java Podcast", "How to Program with Java Podcast", "How to Program with Java Podcast" and "How to Program with Java Podcast"" and more!

    Episodes (6)

    Hibernate Group By

    Hibernate Group By

    In our last Hibernate lesson, you learned how to fix duplicate data from hibernate queries.

    In this lesson we’re going to focus on some of theaggregate functions that can be used with Hibernate, and of course that means diving into theGroup By clause.

    What’s important to note is that Hibernate doesn’t ever refer to it as group by, instead they use the term projections.

    So, armed with this knowledge, let’s jump into the lesson!

    Grouping Data with Hibernate

    In our examples, I’m going to show you how to create a query with hibernate that will group your data in some manner.

    When we build our query, we will be focusing on using Hibernate’s Criteria queries, which allows for a nice way to build queries without having to know any SQL.

    First, let’s start off with an example that we will build on.

    ...continue reading.

    Hibernate Group By

    Hibernate Group By

    In our last Hibernate lesson, you learned how to fix duplicate data from hibernate queries.

    In this lesson we’re going to focus on some of theaggregate functions that can be used with Hibernate, and of course that means diving into theGroup By clause.

    What’s important to note is that Hibernate doesn’t ever refer to it as group by, instead they use the term projections.

    So, armed with this knowledge, let’s jump into the lesson!

    Grouping Data with Hibernate

    In our examples, I’m going to show you how to create a query with hibernate that will group your data in some manner.

    When we build our query, we will be focusing on using Hibernate’s Criteria queries, which allows for a nice way to build queries without having to know any SQL.

    First, let’s start off with an example that we will build on.

    ...continue reading.

    Hibernate Group By

    Hibernate Group By

    In our last Hibernate lesson, you learned how to fix duplicate data from hibernate queries.

    In this lesson we’re going to focus on some of theaggregate functions that can be used with Hibernate, and of course that means diving into theGroup By clause.

    What’s important to note is that Hibernate doesn’t ever refer to it as group by, instead they use the term projections.

    So, armed with this knowledge, let’s jump into the lesson!

    Grouping Data with Hibernate

    In our examples, I’m going to show you how to create a query with hibernate that will group your data in some manner.

    When we build our query, we will be focusing on using Hibernate’s Criteria queries, which allows for a nice way to build queries without having to know any SQL.

    First, let’s start off with an example that we will build on.

    ...continue reading.

    SQL Group By

    SQL Group By

    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

     

    SQL Group By

    SQL Group By

    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

     

    SQL Group By

    SQL Group By

    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