MySQL Part 6: Aggregations
Introduction In this article, we discuss some simple aggregations that MySQL offers. In Part 5 of this series, we went through some filtering and sorting functions widely used in SQL statements. For more information about this article, click the link below. MySQL Part 5: Refining Select Statements To begin your MySQL session in the goormIDE, please be sure to type this code into the terminal. mysql - ctl cli Please ensure that the bike_shop.sql file is selected and available. If not, double-click it on the left-hand side. This is where we will type most of our code. If there is information saved in there, go ahead and clear out that information. Aggregations Defined According to the site, www.xplenty.com/glossary/what-is-sql-aggregation/ , "SQL aggregation is the task of collecting a set of values to return a single value. It is done with the help of aggregate functions, such as SUM, COUNT, and AVG. For example, in a database of products, you might want to ...