Difference between revisions of "AVG()"

From Recital Documentation Wiki
Jump to: navigation, search
 
Line 15: Line 15:
  
 
==See Also==
 
==See Also==
[[SQL SELECT|SELECT]], [[COUNT()]], [[MAX()]], [[MIN()]], [[SUM()]], [[SQL Aggregate Functions|AGGREGATES]]
+
[[SQL Aggregate Functions|AGGREGATES]], [[COUNT()]], [[MAX()]], [[MIN()]], [[SQL SELECT|SELECT]], [[SUM()]]  
  
  

Revision as of 13:16, 19 March 2009

AVG()

Class

SQL Applications


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 Database Server, Recital Mirage Server, Recital Terminal Developer