A  B  C  D  E  F  G  H  I  J  K  L  M  N  O  P  Q  R  S  T  U  V  W  X  Y  Z  special characters  sybase-tech-blog


Category: ASE: Functions: Aggregate Functions

count()

The aggregate function count() counts all rows of a table the values of which are not NULL .

Syntax of the aggregate function count()

    count( [ all | distinct ] expression )
    

Example for the aggregate function count()

Returns the number of all rows for the column column_name of the table table_name, the values of which are not equal to NULL.

    select count(column_name) from table_name
    

See also:

ASE T-SQL - Aggregate Functions,
avg(),
count(*),
count_big(),
max(),
min(),
sum().