Home >> Oracle >> SUM in Oracle

SUM in Oracle

It will returns the total sum value of the numeric column.

Syntax

SELECT SUM(columnname) FROM tablename WHERE condition; 

Example

SELECT SUM(price) AS totalprice FROM products;

Post Your Comment

Next Questions
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
COVAR_SAMP() Aggregate Function
CUME_DIST() Aggregate Function

Copyright ©2022 coderraj.com. All Rights Reserved.