Home >> Oracle >> AVG in Oracle

AVG in Oracle

The AVG returns the average value of the selected column.

Syntax

SELECT AVG(columnname) FROM tablename WHERE condition; 

Example

SELECT AVG(price) AS averageprice FROM products;

Post Your Comment

Next Questions
COUNT
SUM
What is key
What is Super Key
What is Candidate Key
What is Primary Key
What is Unique Key
What is Foreign Key
Function
Procedure
Cursor
Trigger
Before Trigger
After Trigger
DROP Trigger
DISABLE Trigger
ENABLE Trigger
Aggregate Functions
APPROX_COUNT_DISTINCT() Aggregate function
AVG() aggregate function
COLLECT() Aggregate Function
CORR() Aggregate Function
CORR_*
COUNT() aggregate function
COVAR_POP Aggregate Function

Copyright ©2022 coderraj.com. All Rights Reserved.