Loading lesson path
The AVG() function returns the average value of a numeric column. The AVG() function ignores NULL values in the column.
Find the average price of all products:
FROM Products;NULL values are ignored.
column_name )
table_name
condition
;Products table used in the examples:
10 boxes x 20 bags 18.00
Formula
24 - 12 oz bottles19.00
Formula
12 - 550 ml bottles10.00
Formula
48 - 6 oz jars22.00
36 boxes 21.35
clause to specify conditions:
Return the average price of products in category 1: