AltQuery

SQL Aggregation Questions

Aggregate data with COUNT, SUM, AVG, MIN, MAX and group results with GROUP BY and HAVING clauses.

50 Easy100 Medium0 Hard

About SQL Aggregation

Aggregation lets you summarize large datasets into meaningful metrics. This topic covers aggregate functions (COUNT, SUM, AVG, MIN, MAX), grouping rows with GROUP BY, filtering groups with HAVING, and combining aggregation with ordering. These skills are essential for reporting, analytics, and dashboards.

Tips

  • COUNT(*) counts all rows including NULLs
  • HAVING filters after grouping, WHERE filters before
  • Use alias names with aggregate functions for cleaner output

Calculate Count #1

Calculate the count using COUNT(*). COUNT() returns the number of rows. Use COUNT(*) to count all rows, or COUNT(column_name) to count non-NULL values in a specific column.

easy

Calculate Total #2

Calculate the total using SUM(value). SUM() adds up all numeric values in a column. Make sure you're summing the correct column and that it contains numeric data.

easy

Calculate Average #3

Calculate the average using AVG(value). AVG() calculates the average (mean) of numeric values. It automatically excludes NULL values from the calculation.

easy

Calculate Minimum #4

Calculate the minimum using MIN(value). MIN() and MAX() find the smallest and largest values respectively. They work with both numeric and text data.

easy

Calculate Maximum #5

Calculate the maximum using MAX(value). MIN() and MAX() find the smallest and largest values respectively. They work with both numeric and text data.

easy

Calculate Count #6

Calculate the count using COUNT(*). COUNT() returns the number of rows. Use COUNT(*) to count all rows, or COUNT(column_name) to count non-NULL values in a specific column.

easy

Calculate Total #7

Calculate the total using SUM(value). SUM() adds up all numeric values in a column. Make sure you're summing the correct column and that it contains numeric data.

easy

Calculate Average #8

Calculate the average using AVG(value). AVG() calculates the average (mean) of numeric values. It automatically excludes NULL values from the calculation.

easy

Calculate Minimum #9

Calculate the minimum using MIN(value). MIN() and MAX() find the smallest and largest values respectively. They work with both numeric and text data.

easy

Calculate Maximum #10

Calculate the maximum using MAX(value). MIN() and MAX() find the smallest and largest values respectively. They work with both numeric and text data.

easy

Calculate Count #11

Calculate the count using COUNT(*). COUNT() returns the number of rows. Use COUNT(*) to count all rows, or COUNT(column_name) to count non-NULL values in a specific column.

easy

Calculate Total #12

Calculate the total using SUM(value). SUM() adds up all numeric values in a column. Make sure you're summing the correct column and that it contains numeric data.

easy

Calculate Average #13

Calculate the average using AVG(value). AVG() calculates the average (mean) of numeric values. It automatically excludes NULL values from the calculation.

easy

Calculate Minimum #14

Calculate the minimum using MIN(value). MIN() and MAX() find the smallest and largest values respectively. They work with both numeric and text data.

easy

Calculate Maximum #15

Calculate the maximum using MAX(value). MIN() and MAX() find the smallest and largest values respectively. They work with both numeric and text data.

easy

Calculate Count #16

Calculate the count using COUNT(*). COUNT() returns the number of rows. Use COUNT(*) to count all rows, or COUNT(column_name) to count non-NULL values in a specific column.

easy

Calculate Total #17

Calculate the total using SUM(value). SUM() adds up all numeric values in a column. Make sure you're summing the correct column and that it contains numeric data.

easy

Calculate Average #18

Calculate the average using AVG(value). AVG() calculates the average (mean) of numeric values. It automatically excludes NULL values from the calculation.

easy

Calculate Minimum #19

Calculate the minimum using MIN(value). MIN() and MAX() find the smallest and largest values respectively. They work with both numeric and text data.

easy

Calculate Maximum #20

Calculate the maximum using MAX(value). MIN() and MAX() find the smallest and largest values respectively. They work with both numeric and text data.

easy

Calculate Count #21

Calculate the count using COUNT(*). COUNT() returns the number of rows. Use COUNT(*) to count all rows, or COUNT(column_name) to count non-NULL values in a specific column.

easy

Calculate Total #22

Calculate the total using SUM(value). SUM() adds up all numeric values in a column. Make sure you're summing the correct column and that it contains numeric data.

easy

Calculate Average #23

Calculate the average using AVG(value). AVG() calculates the average (mean) of numeric values. It automatically excludes NULL values from the calculation.

easy

Calculate Minimum #24

Calculate the minimum using MIN(value). MIN() and MAX() find the smallest and largest values respectively. They work with both numeric and text data.

easy

Calculate Maximum #25

Calculate the maximum using MAX(value). MIN() and MAX() find the smallest and largest values respectively. They work with both numeric and text data.

easy

Calculate Count #26

Calculate the count using COUNT(*). COUNT() returns the number of rows. Use COUNT(*) to count all rows, or COUNT(column_name) to count non-NULL values in a specific column.

easy

Calculate Total #27

Calculate the total using SUM(value). SUM() adds up all numeric values in a column. Make sure you're summing the correct column and that it contains numeric data.

easy

Calculate Average #28

Calculate the average using AVG(value). AVG() calculates the average (mean) of numeric values. It automatically excludes NULL values from the calculation.

easy

Calculate Minimum #29

Calculate the minimum using MIN(value). MIN() and MAX() find the smallest and largest values respectively. They work with both numeric and text data.

easy

Calculate Maximum #30

Calculate the maximum using MAX(value). MIN() and MAX() find the smallest and largest values respectively. They work with both numeric and text data.

easy

Calculate Count #31

Calculate the count using COUNT(*). COUNT() returns the number of rows. Use COUNT(*) to count all rows, or COUNT(column_name) to count non-NULL values in a specific column.

easy

Calculate Total #32

Calculate the total using SUM(value). SUM() adds up all numeric values in a column. Make sure you're summing the correct column and that it contains numeric data.

easy

Calculate Average #33

Calculate the average using AVG(value). AVG() calculates the average (mean) of numeric values. It automatically excludes NULL values from the calculation.

easy

Calculate Minimum #34

Calculate the minimum using MIN(value). MIN() and MAX() find the smallest and largest values respectively. They work with both numeric and text data.

easy

Calculate Maximum #35

Calculate the maximum using MAX(value). MIN() and MAX() find the smallest and largest values respectively. They work with both numeric and text data.

easy

Calculate Count #36

Calculate the count using COUNT(*). COUNT() returns the number of rows. Use COUNT(*) to count all rows, or COUNT(column_name) to count non-NULL values in a specific column.

easy

Calculate Total #37

Calculate the total using SUM(value). SUM() adds up all numeric values in a column. Make sure you're summing the correct column and that it contains numeric data.

easy

Calculate Average #38

Calculate the average using AVG(value). AVG() calculates the average (mean) of numeric values. It automatically excludes NULL values from the calculation.

easy

Calculate Minimum #39

Calculate the minimum using MIN(value). MIN() and MAX() find the smallest and largest values respectively. They work with both numeric and text data.

easy

Calculate Maximum #40

Calculate the maximum using MAX(value). MIN() and MAX() find the smallest and largest values respectively. They work with both numeric and text data.

easy

Calculate Count #41

Calculate the count using COUNT(*). COUNT() returns the number of rows. Use COUNT(*) to count all rows, or COUNT(column_name) to count non-NULL values in a specific column.

easy

Calculate Total #42

Calculate the total using SUM(value). SUM() adds up all numeric values in a column. Make sure you're summing the correct column and that it contains numeric data.

easy

Calculate Average #43

Calculate the average using AVG(value). AVG() calculates the average (mean) of numeric values. It automatically excludes NULL values from the calculation.

easy

Calculate Minimum #44

Calculate the minimum using MIN(value). MIN() and MAX() find the smallest and largest values respectively. They work with both numeric and text data.

easy

Calculate Maximum #45

Calculate the maximum using MAX(value). MIN() and MAX() find the smallest and largest values respectively. They work with both numeric and text data.

easy

Calculate Count #46

Calculate the count using COUNT(*). COUNT() returns the number of rows. Use COUNT(*) to count all rows, or COUNT(column_name) to count non-NULL values in a specific column.

easy

Calculate Total #47

Calculate the total using SUM(value). SUM() adds up all numeric values in a column. Make sure you're summing the correct column and that it contains numeric data.

easy

Calculate Average #48

Calculate the average using AVG(value). AVG() calculates the average (mean) of numeric values. It automatically excludes NULL values from the calculation.

easy

Calculate Minimum #49

Calculate the minimum using MIN(value). MIN() and MAX() find the smallest and largest values respectively. They work with both numeric and text data.

easy

Calculate Maximum #50

Calculate the maximum using MAX(value). MIN() and MAX() find the smallest and largest values respectively. They work with both numeric and text data.

easy

Calculate Count #51

Calculate the count using COUNT(*). You may need to use GROUP BY to calculate aggregates for different groups of data. Remember that when using GROUP BY, all non-aggregate columns in SELECT must be in the GROUP BY clause.

medium

Calculate Total #52

Calculate the total using SUM(value). You may need to use GROUP BY to calculate aggregates for different groups of data. Remember that when using GROUP BY, all non-aggregate columns in SELECT must be in the GROUP BY clause.

medium

Calculate Average #53

Calculate the average using AVG(value). You may need to use GROUP BY to calculate aggregates for different groups of data. Remember that when using GROUP BY, all non-aggregate columns in SELECT must be in the GROUP BY clause.

medium

Calculate Minimum #54

Calculate the minimum using MIN(value). You may need to use GROUP BY to calculate aggregates for different groups of data. Remember that when using GROUP BY, all non-aggregate columns in SELECT must be in the GROUP BY clause.

medium

Calculate Maximum #55

Calculate the maximum using MAX(value). You may need to use GROUP BY to calculate aggregates for different groups of data. Remember that when using GROUP BY, all non-aggregate columns in SELECT must be in the GROUP BY clause.

medium

Calculate Count #56

Calculate the count using COUNT(*). You may need to use GROUP BY to calculate aggregates for different groups of data. Remember that when using GROUP BY, all non-aggregate columns in SELECT must be in the GROUP BY clause.

medium

Calculate Total #57

Calculate the total using SUM(value). You may need to use GROUP BY to calculate aggregates for different groups of data. Remember that when using GROUP BY, all non-aggregate columns in SELECT must be in the GROUP BY clause.

medium

Calculate Average #58

Calculate the average using AVG(value). You may need to use GROUP BY to calculate aggregates for different groups of data. Remember that when using GROUP BY, all non-aggregate columns in SELECT must be in the GROUP BY clause.

medium

Calculate Minimum #59

Calculate the minimum using MIN(value). You may need to use GROUP BY to calculate aggregates for different groups of data. Remember that when using GROUP BY, all non-aggregate columns in SELECT must be in the GROUP BY clause.

medium

Calculate Maximum #60

Calculate the maximum using MAX(value). You may need to use GROUP BY to calculate aggregates for different groups of data. Remember that when using GROUP BY, all non-aggregate columns in SELECT must be in the GROUP BY clause.

medium

Calculate Count #61

Calculate the count using COUNT(*). You may need to use GROUP BY to calculate aggregates for different groups of data. Remember that when using GROUP BY, all non-aggregate columns in SELECT must be in the GROUP BY clause.

medium

Calculate Total #62

Calculate the total using SUM(value). You may need to use GROUP BY to calculate aggregates for different groups of data. Remember that when using GROUP BY, all non-aggregate columns in SELECT must be in the GROUP BY clause.

medium

Calculate Average #63

Calculate the average using AVG(value). You may need to use GROUP BY to calculate aggregates for different groups of data. Remember that when using GROUP BY, all non-aggregate columns in SELECT must be in the GROUP BY clause.

medium

Calculate Minimum #64

Calculate the minimum using MIN(value). You may need to use GROUP BY to calculate aggregates for different groups of data. Remember that when using GROUP BY, all non-aggregate columns in SELECT must be in the GROUP BY clause.

medium

Calculate Maximum #65

Calculate the maximum using MAX(value). You may need to use GROUP BY to calculate aggregates for different groups of data. Remember that when using GROUP BY, all non-aggregate columns in SELECT must be in the GROUP BY clause.

medium

Calculate Count #66

Calculate the count using COUNT(*). You may need to use GROUP BY to calculate aggregates for different groups of data. Remember that when using GROUP BY, all non-aggregate columns in SELECT must be in the GROUP BY clause.

medium

Calculate Total #67

Calculate the total using SUM(value). You may need to use GROUP BY to calculate aggregates for different groups of data. Remember that when using GROUP BY, all non-aggregate columns in SELECT must be in the GROUP BY clause.

medium

Calculate Average #68

Calculate the average using AVG(value). You may need to use GROUP BY to calculate aggregates for different groups of data. Remember that when using GROUP BY, all non-aggregate columns in SELECT must be in the GROUP BY clause.

medium

Calculate Minimum #69

Calculate the minimum using MIN(value). You may need to use GROUP BY to calculate aggregates for different groups of data. Remember that when using GROUP BY, all non-aggregate columns in SELECT must be in the GROUP BY clause.

medium

Calculate Maximum #70

Calculate the maximum using MAX(value). You may need to use GROUP BY to calculate aggregates for different groups of data. Remember that when using GROUP BY, all non-aggregate columns in SELECT must be in the GROUP BY clause.

medium

Calculate Count #71

Calculate the count using COUNT(*). You may need to use GROUP BY to calculate aggregates for different groups of data. Remember that when using GROUP BY, all non-aggregate columns in SELECT must be in the GROUP BY clause.

medium

Calculate Total #72

Calculate the total using SUM(value). You may need to use GROUP BY to calculate aggregates for different groups of data. Remember that when using GROUP BY, all non-aggregate columns in SELECT must be in the GROUP BY clause.

medium

Calculate Average #73

Calculate the average using AVG(value). You may need to use GROUP BY to calculate aggregates for different groups of data. Remember that when using GROUP BY, all non-aggregate columns in SELECT must be in the GROUP BY clause.

medium

Calculate Minimum #74

Calculate the minimum using MIN(value). You may need to use GROUP BY to calculate aggregates for different groups of data. Remember that when using GROUP BY, all non-aggregate columns in SELECT must be in the GROUP BY clause.

medium

Calculate Maximum #75

Calculate the maximum using MAX(value). You may need to use GROUP BY to calculate aggregates for different groups of data. Remember that when using GROUP BY, all non-aggregate columns in SELECT must be in the GROUP BY clause.

medium

Group by Category with Count #76

Calculate count for each category. You may need to use GROUP BY to calculate aggregates for different groups of data. Remember that when using GROUP BY, all non-aggregate columns in SELECT must be in the GROUP BY clause.

medium

Group by Category with Total #77

Calculate total for each category. You may need to use GROUP BY to calculate aggregates for different groups of data. Remember that when using GROUP BY, all non-aggregate columns in SELECT must be in the GROUP BY clause.

medium

Group by Category with Average #78

Calculate average for each category. You may need to use GROUP BY to calculate aggregates for different groups of data. Remember that when using GROUP BY, all non-aggregate columns in SELECT must be in the GROUP BY clause.

medium

Group by Category with Minimum #79

Calculate minimum for each category. You may need to use GROUP BY to calculate aggregates for different groups of data. Remember that when using GROUP BY, all non-aggregate columns in SELECT must be in the GROUP BY clause.

medium

Group by Category with Maximum #80

Calculate maximum for each category. You may need to use GROUP BY to calculate aggregates for different groups of data. Remember that when using GROUP BY, all non-aggregate columns in SELECT must be in the GROUP BY clause.

medium

Group by Category with Count #81

Calculate count for each category. You may need to use GROUP BY to calculate aggregates for different groups of data. Remember that when using GROUP BY, all non-aggregate columns in SELECT must be in the GROUP BY clause.

medium

Group by Category with Total #82

Calculate total for each category. You may need to use GROUP BY to calculate aggregates for different groups of data. Remember that when using GROUP BY, all non-aggregate columns in SELECT must be in the GROUP BY clause.

medium

Group by Category with Average #83

Calculate average for each category. You may need to use GROUP BY to calculate aggregates for different groups of data. Remember that when using GROUP BY, all non-aggregate columns in SELECT must be in the GROUP BY clause.

medium

Group by Category with Minimum #84

Calculate minimum for each category. You may need to use GROUP BY to calculate aggregates for different groups of data. Remember that when using GROUP BY, all non-aggregate columns in SELECT must be in the GROUP BY clause.

medium

Group by Category with Maximum #85

Calculate maximum for each category. You may need to use GROUP BY to calculate aggregates for different groups of data. Remember that when using GROUP BY, all non-aggregate columns in SELECT must be in the GROUP BY clause.

medium

Group by Category with Count #86

Calculate count for each category. You may need to use GROUP BY to calculate aggregates for different groups of data. Remember that when using GROUP BY, all non-aggregate columns in SELECT must be in the GROUP BY clause.

medium

Group by Category with Total #87

Calculate total for each category. You may need to use GROUP BY to calculate aggregates for different groups of data. Remember that when using GROUP BY, all non-aggregate columns in SELECT must be in the GROUP BY clause.

medium

Group by Category with Average #88

Calculate average for each category. You may need to use GROUP BY to calculate aggregates for different groups of data. Remember that when using GROUP BY, all non-aggregate columns in SELECT must be in the GROUP BY clause.

medium

Group by Category with Minimum #89

Calculate minimum for each category. You may need to use GROUP BY to calculate aggregates for different groups of data. Remember that when using GROUP BY, all non-aggregate columns in SELECT must be in the GROUP BY clause.

medium

Group by Category with Maximum #90

Calculate maximum for each category. You may need to use GROUP BY to calculate aggregates for different groups of data. Remember that when using GROUP BY, all non-aggregate columns in SELECT must be in the GROUP BY clause.

medium

Group by Category with Count #91

Calculate count for each category. You may need to use GROUP BY to calculate aggregates for different groups of data. Remember that when using GROUP BY, all non-aggregate columns in SELECT must be in the GROUP BY clause.

medium

Group by Category with Total #92

Calculate total for each category. You may need to use GROUP BY to calculate aggregates for different groups of data. Remember that when using GROUP BY, all non-aggregate columns in SELECT must be in the GROUP BY clause.

medium

Group by Category with Average #93

Calculate average for each category. You may need to use GROUP BY to calculate aggregates for different groups of data. Remember that when using GROUP BY, all non-aggregate columns in SELECT must be in the GROUP BY clause.

medium

Group by Category with Minimum #94

Calculate minimum for each category. You may need to use GROUP BY to calculate aggregates for different groups of data. Remember that when using GROUP BY, all non-aggregate columns in SELECT must be in the GROUP BY clause.

medium

Group by Category with Maximum #95

Calculate maximum for each category. You may need to use GROUP BY to calculate aggregates for different groups of data. Remember that when using GROUP BY, all non-aggregate columns in SELECT must be in the GROUP BY clause.

medium

Group by Category with Count #96

Calculate count for each category. You may need to use GROUP BY to calculate aggregates for different groups of data. Remember that when using GROUP BY, all non-aggregate columns in SELECT must be in the GROUP BY clause.

medium

Group by Category with Total #97

Calculate total for each category. You may need to use GROUP BY to calculate aggregates for different groups of data. Remember that when using GROUP BY, all non-aggregate columns in SELECT must be in the GROUP BY clause.

medium

Group by Category with Average #98

Calculate average for each category. You may need to use GROUP BY to calculate aggregates for different groups of data. Remember that when using GROUP BY, all non-aggregate columns in SELECT must be in the GROUP BY clause.

medium

Group by Category with Minimum #99

Calculate minimum for each category. You may need to use GROUP BY to calculate aggregates for different groups of data. Remember that when using GROUP BY, all non-aggregate columns in SELECT must be in the GROUP BY clause.

medium

Group by Category with Maximum #100

Calculate maximum for each category. You may need to use GROUP BY to calculate aggregates for different groups of data. Remember that when using GROUP BY, all non-aggregate columns in SELECT must be in the GROUP BY clause.

medium

Group by Category with Count #101

Calculate count for each category. You may need to use GROUP BY to calculate aggregates for different groups of data. Remember that when using GROUP BY, all non-aggregate columns in SELECT must be in the GROUP BY clause.

medium

Group by Category with Total #102

Calculate total for each category. You may need to use GROUP BY to calculate aggregates for different groups of data. Remember that when using GROUP BY, all non-aggregate columns in SELECT must be in the GROUP BY clause.

medium

Group by Category with Average #103

Calculate average for each category. You may need to use GROUP BY to calculate aggregates for different groups of data. Remember that when using GROUP BY, all non-aggregate columns in SELECT must be in the GROUP BY clause.

medium

Group by Category with Minimum #104

Calculate minimum for each category. You may need to use GROUP BY to calculate aggregates for different groups of data. Remember that when using GROUP BY, all non-aggregate columns in SELECT must be in the GROUP BY clause.

medium

Group by Category with Maximum #105

Calculate maximum for each category. You may need to use GROUP BY to calculate aggregates for different groups of data. Remember that when using GROUP BY, all non-aggregate columns in SELECT must be in the GROUP BY clause.

medium

Group by Category with Count #106

Calculate count for each category. You may need to use GROUP BY to calculate aggregates for different groups of data. Remember that when using GROUP BY, all non-aggregate columns in SELECT must be in the GROUP BY clause.

medium

Group by Category with Total #107

Calculate total for each category. You may need to use GROUP BY to calculate aggregates for different groups of data. Remember that when using GROUP BY, all non-aggregate columns in SELECT must be in the GROUP BY clause.

medium

Group by Category with Average #108

Calculate average for each category. You may need to use GROUP BY to calculate aggregates for different groups of data. Remember that when using GROUP BY, all non-aggregate columns in SELECT must be in the GROUP BY clause.

medium

Group by Category with Minimum #109

Calculate minimum for each category. You may need to use GROUP BY to calculate aggregates for different groups of data. Remember that when using GROUP BY, all non-aggregate columns in SELECT must be in the GROUP BY clause.

medium

Group by Category with Maximum #110

Calculate maximum for each category. You may need to use GROUP BY to calculate aggregates for different groups of data. Remember that when using GROUP BY, all non-aggregate columns in SELECT must be in the GROUP BY clause.

medium

Group by Category with Count #111

Calculate count for each category. You may need to use GROUP BY to calculate aggregates for different groups of data. Remember that when using GROUP BY, all non-aggregate columns in SELECT must be in the GROUP BY clause.

medium

Group by Category with Total #112

Calculate total for each category. You may need to use GROUP BY to calculate aggregates for different groups of data. Remember that when using GROUP BY, all non-aggregate columns in SELECT must be in the GROUP BY clause.

medium

Group by Category with Average #113

Calculate average for each category. You may need to use GROUP BY to calculate aggregates for different groups of data. Remember that when using GROUP BY, all non-aggregate columns in SELECT must be in the GROUP BY clause.

medium

Group by Category with Minimum #114

Calculate minimum for each category. You may need to use GROUP BY to calculate aggregates for different groups of data. Remember that when using GROUP BY, all non-aggregate columns in SELECT must be in the GROUP BY clause.

medium

Group by Category with Maximum #115

Calculate maximum for each category. You may need to use GROUP BY to calculate aggregates for different groups of data. Remember that when using GROUP BY, all non-aggregate columns in SELECT must be in the GROUP BY clause.

medium

Group by Category with Count #116

Calculate count for each category. You may need to use GROUP BY to calculate aggregates for different groups of data. Remember that when using GROUP BY, all non-aggregate columns in SELECT must be in the GROUP BY clause.

medium

Group by Category with Total #117

Calculate total for each category. You may need to use GROUP BY to calculate aggregates for different groups of data. Remember that when using GROUP BY, all non-aggregate columns in SELECT must be in the GROUP BY clause.

medium

Group by Category with Average #118

Calculate average for each category. You may need to use GROUP BY to calculate aggregates for different groups of data. Remember that when using GROUP BY, all non-aggregate columns in SELECT must be in the GROUP BY clause.

medium

Group by Category with Minimum #119

Calculate minimum for each category. You may need to use GROUP BY to calculate aggregates for different groups of data. Remember that when using GROUP BY, all non-aggregate columns in SELECT must be in the GROUP BY clause.

medium

Group by Category with Maximum #120

Calculate maximum for each category. You may need to use GROUP BY to calculate aggregates for different groups of data. Remember that when using GROUP BY, all non-aggregate columns in SELECT must be in the GROUP BY clause.

medium

Group by Category with Count #121

Calculate count for each category. You may need to use GROUP BY to calculate aggregates for different groups of data. Remember that when using GROUP BY, all non-aggregate columns in SELECT must be in the GROUP BY clause.

medium

Group by Category with Total #122

Calculate total for each category. You may need to use GROUP BY to calculate aggregates for different groups of data. Remember that when using GROUP BY, all non-aggregate columns in SELECT must be in the GROUP BY clause.

medium

Group by Category with Average #123

Calculate average for each category. You may need to use GROUP BY to calculate aggregates for different groups of data. Remember that when using GROUP BY, all non-aggregate columns in SELECT must be in the GROUP BY clause.

medium

Group by Category with Minimum #124

Calculate minimum for each category. You may need to use GROUP BY to calculate aggregates for different groups of data. Remember that when using GROUP BY, all non-aggregate columns in SELECT must be in the GROUP BY clause.

medium

Group by Category with Maximum #125

Calculate maximum for each category. You may need to use GROUP BY to calculate aggregates for different groups of data. Remember that when using GROUP BY, all non-aggregate columns in SELECT must be in the GROUP BY clause.

medium

Group by Category with Count #126

Calculate count for each category. You may need to use GROUP BY to calculate aggregates for different groups of data. Remember that when using GROUP BY, all non-aggregate columns in SELECT must be in the GROUP BY clause.

medium

Group by Category with Total #127

Calculate total for each category. You may need to use GROUP BY to calculate aggregates for different groups of data. Remember that when using GROUP BY, all non-aggregate columns in SELECT must be in the GROUP BY clause.

medium

Group by Category with Average #128

Calculate average for each category. You may need to use GROUP BY to calculate aggregates for different groups of data. Remember that when using GROUP BY, all non-aggregate columns in SELECT must be in the GROUP BY clause.

medium

Group by Category with Minimum #129

Calculate minimum for each category. You may need to use GROUP BY to calculate aggregates for different groups of data. Remember that when using GROUP BY, all non-aggregate columns in SELECT must be in the GROUP BY clause.

medium

Group by Category with Maximum #130

Calculate maximum for each category. You may need to use GROUP BY to calculate aggregates for different groups of data. Remember that when using GROUP BY, all non-aggregate columns in SELECT must be in the GROUP BY clause.

medium

Group by Category with Count #131

Calculate count for each category. You may need to use GROUP BY to calculate aggregates for different groups of data. Remember that when using GROUP BY, all non-aggregate columns in SELECT must be in the GROUP BY clause.

medium

Group by Category with Total #132

Calculate total for each category. You may need to use GROUP BY to calculate aggregates for different groups of data. Remember that when using GROUP BY, all non-aggregate columns in SELECT must be in the GROUP BY clause.

medium

Group by Category with Average #133

Calculate average for each category. You may need to use GROUP BY to calculate aggregates for different groups of data. Remember that when using GROUP BY, all non-aggregate columns in SELECT must be in the GROUP BY clause.

medium

Group by Category with Minimum #134

Calculate minimum for each category. You may need to use GROUP BY to calculate aggregates for different groups of data. Remember that when using GROUP BY, all non-aggregate columns in SELECT must be in the GROUP BY clause.

medium

Group by Category with Maximum #135

Calculate maximum for each category. You may need to use GROUP BY to calculate aggregates for different groups of data. Remember that when using GROUP BY, all non-aggregate columns in SELECT must be in the GROUP BY clause.

medium

Group by Category with Count #136

Calculate count for each category. You may need to use GROUP BY to calculate aggregates for different groups of data. Remember that when using GROUP BY, all non-aggregate columns in SELECT must be in the GROUP BY clause.

medium

Group by Category with Total #137

Calculate total for each category. You may need to use GROUP BY to calculate aggregates for different groups of data. Remember that when using GROUP BY, all non-aggregate columns in SELECT must be in the GROUP BY clause.

medium

Group by Category with Average #138

Calculate average for each category. You may need to use GROUP BY to calculate aggregates for different groups of data. Remember that when using GROUP BY, all non-aggregate columns in SELECT must be in the GROUP BY clause.

medium

Group by Category with Minimum #139

Calculate minimum for each category. You may need to use GROUP BY to calculate aggregates for different groups of data. Remember that when using GROUP BY, all non-aggregate columns in SELECT must be in the GROUP BY clause.

medium

Group by Category with Maximum #140

Calculate maximum for each category. You may need to use GROUP BY to calculate aggregates for different groups of data. Remember that when using GROUP BY, all non-aggregate columns in SELECT must be in the GROUP BY clause.

medium

Group by Category with Count #141

Calculate count for each category. You may need to use GROUP BY to calculate aggregates for different groups of data. Remember that when using GROUP BY, all non-aggregate columns in SELECT must be in the GROUP BY clause.

medium

Group by Category with Total #142

Calculate total for each category. You may need to use GROUP BY to calculate aggregates for different groups of data. Remember that when using GROUP BY, all non-aggregate columns in SELECT must be in the GROUP BY clause.

medium

Group by Category with Average #143

Calculate average for each category. You may need to use GROUP BY to calculate aggregates for different groups of data. Remember that when using GROUP BY, all non-aggregate columns in SELECT must be in the GROUP BY clause.

medium

Group by Category with Minimum #144

Calculate minimum for each category. You may need to use GROUP BY to calculate aggregates for different groups of data. Remember that when using GROUP BY, all non-aggregate columns in SELECT must be in the GROUP BY clause.

medium

Group by Category with Maximum #145

Calculate maximum for each category. You may need to use GROUP BY to calculate aggregates for different groups of data. Remember that when using GROUP BY, all non-aggregate columns in SELECT must be in the GROUP BY clause.

medium

Group by Category with Count #146

Calculate count for each category. You may need to use GROUP BY to calculate aggregates for different groups of data. Remember that when using GROUP BY, all non-aggregate columns in SELECT must be in the GROUP BY clause.

medium

Group by Category with Total #147

Calculate total for each category. You may need to use GROUP BY to calculate aggregates for different groups of data. Remember that when using GROUP BY, all non-aggregate columns in SELECT must be in the GROUP BY clause.

medium

Group by Category with Average #148

Calculate average for each category. You may need to use GROUP BY to calculate aggregates for different groups of data. Remember that when using GROUP BY, all non-aggregate columns in SELECT must be in the GROUP BY clause.

medium

Group by Category with Minimum #149

Calculate minimum for each category. You may need to use GROUP BY to calculate aggregates for different groups of data. Remember that when using GROUP BY, all non-aggregate columns in SELECT must be in the GROUP BY clause.

medium

Group by Category with Maximum #150

Calculate maximum for each category. You may need to use GROUP BY to calculate aggregates for different groups of data. Remember that when using GROUP BY, all non-aggregate columns in SELECT must be in the GROUP BY clause.

medium