SLOs
Aggregating Data
Week 06: April 20β24ΒΆ
At the end of this week, you should be able to:
Count rows and non-
NULLvalues usingCOUNT.Use
DISTINCTinside aggregate functions to count unique values.Apply numeric aggregate functions β
SUM,AVG,MIN, andMAXβ to summarize data.Group query results by one or more columns using
GROUP BY.Write aggregate queries that span multiple joined tables.
Filter grouped results using a
HAVINGclause and explain how it differs fromWHERE.Simplify complex queries by defining Common Table Expressions (CTEs) with
WITH.