1.0

Table Of Contents
Syntax
COS ( number )
COSH function
The COSH function returns the hyperbolic cosine of a specied number.
The specied number is the angle, in radians, that you want the hyperbolic cosine for. The specied number
must be a DOUBLE PRECISION on page 578 number.
If the specied number is NULL, the result of this function is NULL.
If the specied number is zero (0), the result of this function is one (1.0).
Syntax
COSH ( number )
COT function
The COT function returns the cotangens of a specied number.
The specied number is the angle, in radians, that you want the cotangens for. The specied number must be a
DOUBLE PRECISION on page 578 number.
If the specied number is NULL, the result of this function is NULL.
Syntax
COT ( number )
COUNT function
COUNT is an aggregate function that counts the number of rows accessed in an expression (see Aggregates (set
functions) on page 509). COUNT is allowed on all types of expressions.
Syntax
COUNT ( [ DISTINCT | ALL ] Expression )
The DISTINCT qualier eliminates duplicates. The ALL qualier retains duplicates. ALL is assumed if neither
ALL nor DISTINCT is specied. For example, if a column contains the values 1, 1, 1, 1, and 2, COUNT(col)
returns a greater value than COUNT(DISTINCT col).
Only one DISTINCT aggregate expression per SelectExpression on page 496 is allowed. For example, the
following query is not allowed:
-- query not allowed
SELECT COUNT (DISTINCT flying_time), SUM (DISTINCT miles)
FROM Flights
An Expression can contain multiple column references or expressions, but it cannot contain another aggregate
or subquery. If an Expression evaluates to NULL, the aggregate is not processed for that value.
The resulting data type of COUNT is INTEGER on page 579.
521
SQL Language Reference