Home Tutorial Php Sql MySQL Average Command

 
 

MySQL Average Command
Posted on: December 9, 2010 at 12:00 AM
Advertisement
This example illustrates how to execute the Average command in MySQL.

MySQL Average Command

This example illustrates how to execute the Average command in MySQL.

In this example we create a select query to find the average of 'lastAccess' field.

 

Query

 

Output

 

select AVG(lastAccess) from emp;

 

+---------------------------+
| AVG(lastAccess)           |
+---------------------------+
| 16734273156259.9450000000 |
+---------------------------+

 

Advertisement

Related Tags for MySQL Average Command:


Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: December 9, 2010

Recommend the tutorial

Advertisements Advertisements
 

 

 

DMCA.com