Hitachi

Hitachi Advanced Database SQL Reference


7.22 Set functions

Set functions can be used to calculate aggregate values across multiple rows. The set functions are listed in the following table.

Table 7‒15: List of set functions

No.

List of set functions

Description

1

COUNT(*)

Determine the row count (number of results).

2

General set functions

AVG

Determine the average value.

3

COUNT

Determine the row count (number of results).

4

MAX

Determine the maximum value.

5

MIN

Determine the minimum value.

6

SUM

Determine the total value.

7

STDDEV_POP

Determine the standard deviation of a population.

8

STDDEV_SAMP

Determine the standard deviation of a sample.

9

VAR_POP

Determine the variance of a population.

10

VAR_SAMP

Determine the variance of a sample.

11

Inverse distribution functions

MEDIAN

Determine the median value of an ordered set of values. The value might be linearly interpolated.

12

PERCENTILE_CONT

Determine the percentile of an ordered set of values. The value might be linearly interpolated.

13

PERCENTILE_DISC

Determine the percentile of an ordered set of values. A result from the set of values is returned.

Organization of this section