basic-math
Counting Results
To count rows you can use the COUNT()
function.
To count unique entries use the DISTINCT
keyword too:
To count aggregated rows with common values use the GROUP BY
keywords:
Obtaining Totals
To total up numeric columns use the SUM()
function.
Calculating Averages
To get the average value of a numeric column use the AVG()
function.
Finding the Maximum and Minimum Values
To get the maximum value of a numeric column use the MAX()
function.
To get the minimum value of a numeric column use the MIN()
function.
Mathematical Operators
*
Multiply/
Divide+
Add-
Subtract
Last updated
Was this helpful?