MySQL Average Command

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

 
 

Share on Google+Share on Google+

MySQL Average Command

Ads

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 |
+---------------------------+

 

Advertisements

Posted on: December 9, 2010 If you enjoyed this post then why not add us on Google+? Add us to your Circles