Home >> Oracle >> COUNT in Oracle

COUNT in Oracle

It will count all rows in that column except null value.

Syntax

SELECT COUNT(columnname) FROM tablename WHERE condition; 

Example

SELECT COUNT(price) AS countprice FROM products;

Post Your Comment

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

Copyright ©2022 coderraj.com. All Rights Reserved.