Difference between revisions of "AVG()"

From Recital Documentation Wiki
Jump to: navigation, search
(Products)
 
Line 17: Line 17:
 
==Example==
 
==Example==
 
<code lang="recital">
 
<code lang="recital">
SELECT AVG(sal) Average FROM accounts;
+
SELECT AVG(sal) Average FROM accounts
 
</code>
 
</code>
  

Latest revision as of 17:14, 22 December 2009

Purpose

Returns an average value in a SELECT statement


Syntax

AVG(<expN>)


See Also

AGGREGATES, COUNT(), MAX(), MIN(), SELECT, SUM()


Description

Returns the average value of <expN>.


Example

SELECT AVG(sal) Average FROM accounts


Products

Recital Server, Recital