Home >> MySql >> AVG() aggregate function in MySql

AVG() aggregate function in MySql

Find average value of n ignoring NULL values in a column.

Example

SELECT AVG(price) FROM products

Post Your Comment

Next Questions
MIN() aggregate function
MAX() aggregate function
SUM() aggregate function
STDED() aggregate function
CONCAT() function
GROUP_CONCAT() function
CONCAT_WS() function
CHECKSUM_AGG() aggregate function
ABS(n) aggregate function
POWER(m,n) aggregate function
ROUND() aggregate function
SQRT() aggregate function
GREATEST() aggregate function
LEAST() aggregate function
EXP() aggregate function
EXTRACT() aggregate function
MOD() aggregate function
TRUNC() aggregate function
FLOOR() aggregate function
CEIL() aggregate function
FIRST() aggregate function
LAST() aggregate function
MID() aggregate function
LEN() aggregate function
NOW() aggregate function

Copyright ©2022 coderraj.com. All Rights Reserved.