How to get average value of a column in mysql query

Mysql

Posted on 06 Oct 15 by Vickey
  355



SELECT 
	FORMAT
	(
		SUM(`price`) / COUNT(*),2
	) AS average FROM `order` WHERE 1

 


If this post help you reduce time to develop, you can help me to maintain this website :)
www.000webhost.com