Hitachi

Hitachi Advanced Database SQL Reference


8.2.10 SIN

Returns the sine (SIN trigonometric function) of the target data, which must be specified in radians.

Organization of this subsection

(1) Specification format

scalar-function-SIN ::= SIN(target-data)
 
  target-data ::= value-expression

(2) Explanation of specification format

target-data:

Specifies the numeric data whose sine is to be determined.

The following rules apply:

(3) Rules

  1. The data type of the execution result is the DOUBLE PRECISION type.

  2. The NOT NULL constraint does not apply to the value of the execution result (the null value is allowed).

  3. If the target data has the null value, the execution result will be a null value.

(4) Example

Example:

Express the value of column C1 in table T1 in radians and then determine its sine.

SELECT SIN("C1"*PI()/180) FROM "T1"

[Figure]