Returns the number of rows retrieved by a SELECT statement for a specified table.
| Category: | Aggregate |
| Alias: | N |
| Returned data type: | BIGINT |
specifies any valid SQL expression.
| Data type | All data types are valid. |
| See | <sql-expression> |
| FedSQL Expressions |
returns a count of all rows from the table, including rows that contain null values or SAS missing values.
returns the number of unique values, excluding null values.
COUNT(expression)COUNT(*)COUNT(DISTINCT expression)|
Statements
|
Results
|
|---|---|
select count(AvgHigh) from worldtemps; |
11 |
select count(*) from worldtemps; |
12 |
select count(distinct AvgHigh) from worldtemps; |
8 |