Small. Fast. Reliable.
Choose any three.

SQLite Requirement Matrix Details
lang_aggfunc.html

Index Summary Markup Original


R-02441-32852-37990-28224-33727-50103-08766-46785 tcl slt th3 src

Canonical usage: syntax/aggregate-function-invocation.html

/* IMP: R-02441-32852 */
# EVIDENCE-OF: R-02441-32852 -- syntax diagram aggregate-function-invocation

R-05949-14992-08035-18700-31063-00582-56557-23299 tcl slt th3 src

Canonical usage: syntax/expr.html

/* IMP: R-05949-14992 */
# EVIDENCE-OF: R-05949-14992 -- syntax diagram expr

R-36911-54969-15236-22853-38940-32913-12354-42363 tcl slt th3 src

Canonical usage: syntax/literal-value.html

/* IMP: R-36911-54969 */
# EVIDENCE-OF: R-36911-54969 -- syntax diagram literal-value

R-39106-18215-63620-21950-01426-37390-34436-15307 tcl slt th3 src

Canonical usage: syntax/over-clause.html

/* IMP: R-39106-18215 */
# EVIDENCE-OF: R-39106-18215 -- syntax diagram over-clause

R-43427-44402-29451-17649-47289-60254-55729-32554 tcl slt th3 src

Canonical usage: syntax/frame-spec.html

/* IMP: R-43427-44402 */
# EVIDENCE-OF: R-43427-44402 -- syntax diagram frame-spec

R-27998-48590-15759-55327-24057-45544-61498-20485 tcl slt th3 src

Canonical usage: syntax/ordering-term.html

/* IMP: R-27998-48590 */
# EVIDENCE-OF: R-27998-48590 -- syntax diagram ordering-term

R-11045-52870-41853-22612-28711-29067-44165-34250 tcl slt th3 src

Canonical usage: syntax/raise-function.html

/* IMP: R-11045-52870 */
# EVIDENCE-OF: R-11045-52870 -- syntax diagram raise-function

R-07822-20600-60008-25390-21808-35959-11282-32675 tcl slt th3 src

Canonical usage: syntax/select-stmt.html

/* IMP: R-07822-20600 */
# EVIDENCE-OF: R-07822-20600 -- syntax diagram select-stmt

R-48339-53472-43967-43694-30651-22239-39991-26499 tcl slt th3 src

Canonical usage: syntax/common-table-expression.html

/* IMP: R-48339-53472 */
# EVIDENCE-OF: R-48339-53472 -- syntax diagram common-table-expression

R-34484-27817-31904-59996-06509-56853-54385-06908 tcl slt th3 src

Canonical usage: syntax/compound-operator.html

/* IMP: R-34484-27817 */
# EVIDENCE-OF: R-34484-27817 -- syntax diagram compound-operator

R-62819-25014-14742-19526-07437-11316-46744-34017 tcl slt th3 src

Canonical usage: syntax/join-clause.html

/* IMP: R-62819-25014 */
# EVIDENCE-OF: R-62819-25014 -- syntax diagram join-clause

R-22251-01544-43178-13583-65163-47242-05139-28044 tcl slt th3 src

Canonical usage: syntax/join-constraint.html

/* IMP: R-22251-01544 */
# EVIDENCE-OF: R-22251-01544 -- syntax diagram join-constraint

R-37592-60550-55049-61415-11391-65005-23058-12335 tcl slt th3 src

Canonical usage: syntax/join-operator.html

/* IMP: R-37592-60550 */
# EVIDENCE-OF: R-37592-60550 -- syntax diagram join-operator

R-27998-48590-15759-55327-24057-45544-61498-20485 tcl slt th3 src

Canonical usage: syntax/ordering-term.html

/* IMP: R-27998-48590 */
# EVIDENCE-OF: R-27998-48590 -- syntax diagram ordering-term

R-55434-02683-06673-33913-45638-17712-08878-40551 tcl slt th3 src

Canonical usage: syntax/result-column.html

/* IMP: R-55434-02683 */
# EVIDENCE-OF: R-55434-02683 -- syntax diagram result-column

R-48195-34360-11192-44367-16579-00892-09818-30155 tcl slt th3 src

Canonical usage: syntax/table-or-subquery.html

/* IMP: R-48195-34360 */
# EVIDENCE-OF: R-48195-34360 -- syntax diagram table-or-subquery

R-48345-61330-56074-37373-15233-53014-54747-65452 tcl slt th3 src

Canonical usage: syntax/window-defn.html

/* IMP: R-48345-61330 */
# EVIDENCE-OF: R-48345-61330 -- syntax diagram window-defn

R-43427-44402-29451-17649-47289-60254-55729-32554 tcl slt th3 src

Canonical usage: syntax/frame-spec.html

/* IMP: R-43427-44402 */
# EVIDENCE-OF: R-43427-44402 -- syntax diagram frame-spec

R-62486-51739-58335-52148-04934-35692-56858-32635 tcl slt th3 src

Canonical usage: syntax/type-name.html

/* IMP: R-62486-51739 */
# EVIDENCE-OF: R-62486-51739 -- syntax diagram type-name

R-11175-37461-37361-55818-19791-03595-13461-03099 tcl slt th3 src

Canonical usage: syntax/signed-number.html

/* IMP: R-11175-37461 */
# EVIDENCE-OF: R-11175-37461 -- syntax diagram signed-number

R-40210-12599-36231-03864-46176-41928-03203-14839 tcl slt th3 src

Canonical usage: syntax/filter-clause.html

/* IMP: R-40210-12599 */
# EVIDENCE-OF: R-40210-12599 -- syntax diagram filter-clause

R-00466-56349-41436-38164-40851-28282-49107-17370 tcl slt th3 src

In any aggregate function that takes a single argument, that argument can be preceded by the keyword DISTINCT.

/* IMP: R-00466-56349 */
# EVIDENCE-OF: R-00466-56349 In any aggregate function that takes a
# single argument, that argument can be preceded by the keyword
# DISTINCT.

R-00171-59428-63637-20419-61024-28048-20428-49478 tcl slt th3 src

In such cases, duplicate elements are filtered before being passed into the aggregate function.

/* IMP: R-00171-59428 */
# EVIDENCE-OF: R-00171-59428 In such cases, duplicate elements are
# filtered before being passed into the aggregate function.

R-31453-41389-40618-59449-38915-45174-40720-02932 tcl slt th3 src

For example, the function "count(distinct X)" will return the number of distinct values of column X instead of the total number of non-null values in column X.

/* IMP: R-31453-41389 */
# EVIDENCE-OF: R-31453-41389 For example, the function "count(distinct
# X)" will return the number of distinct values of column X instead of
# the total number of non-null values in column X.

R-20409-33051-08329-62436-45384-49643-45094-34288 tcl slt th3 src

The avg() function returns the average value of all non-NULL X within a group.

/* IMP: R-20409-33051 */
# EVIDENCE-OF: R-20409-33051 The avg() function returns the average
# value of all non-NULL X within a group.

R-29052-00975-25766-49663-50070-52826-19346-28533 tcl slt th3 src

String and BLOB values that do not look like numbers are interpreted as 0.

/* IMP: R-29052-00975 */
# EVIDENCE-OF: R-29052-00975 String and BLOB values that do not look
# like numbers are interpreted as 0.

R-07535-34995-01447-54565-38524-09572-39500-26944 tcl slt th3 src

The result of avg() is always a floating point value as long as at there is at least one non-NULL input even if all inputs are integers.

/* IMP: R-07535-34995 */
# EVIDENCE-OF: R-07535-34995 The result of avg() is always a floating
# point value as long as at there is at least one non-NULL input even if
# all inputs are integers.

R-40597-22164-08785-17254-28069-60974-16591-44156 tcl slt th3 src

The result of avg() is NULL if and only if there are no non-NULL inputs.

/* IMP: R-40597-22164 */
# EVIDENCE-OF: R-40597-22164 The result of avg() is NULL if and only if
# there are no non-NULL inputs.

R-34280-42283-63975-25394-58653-47378-35851-53437 tcl slt th3 src

The count(X) function returns a count of the number of times that X is not NULL in a group.

/* IMP: R-34280-42283 */
# EVIDENCE-OF: R-34280-42283 The count(X) function returns a count of
# the number of times that X is not NULL in a group.

R-13776-21310-53568-57098-48778-28371-47670-31301 tcl slt th3 src

The count(*) function (with no arguments) returns the total number of rows in the group.

/* IMP: R-13776-21310 */
# EVIDENCE-OF: R-13776-21310 The count(*) function (with no arguments)
# returns the total number of rows in the group.

R-56088-25150-58914-01692-09523-48299-30387-32306 tcl slt th3 src

The group_concat() function returns a string which is the concatenation of all non-NULL values of X.

/* IMP: R-56088-25150 */
# EVIDENCE-OF: R-56088-25150 The group_concat() function returns a
# string which is the concatenation of all non-NULL values of X.

R-08600-21007-59699-24141-37945-25671-33905-23052 tcl slt th3 src

If parameter Y is present then it is used as the separator between instances of X.

/* IMP: R-08600-21007 */
# EVIDENCE-OF: R-08600-21007 If parameter Y is present then it is used
# as the separator between instances of X.

R-39910-14723-21123-44064-38823-12161-58690-10248 tcl slt th3 src

A comma (",") is used as the separator if Y is omitted.

/* IMP: R-39910-14723 */
# EVIDENCE-OF: R-39910-14723 A comma (",") is used as the separator if Y
# is omitted.

R-52585-35928-11217-60344-47086-04619-13740-01929 tcl slt th3 src

The max() aggregate function returns the maximum value of all values in the group.

/* IMP: R-52585-35928 */
# EVIDENCE-OF: R-52585-35928 The max() aggregate function returns the
# maximum value of all values in the group.

R-13053-11096-22952-42489-44628-35475-18449-44243 tcl slt th3 src

The maximum value is the value that would be returned last in an ORDER BY on the same column.

/* IMP: R-13053-11096 */
# EVIDENCE-OF: R-13053-11096 The maximum value is the value that would
# be returned last in an ORDER BY on the same column.

R-50775-16353-43388-35823-42786-57944-23203-27410 tcl slt th3 src

Aggregate max() returns NULL if and only if there are no non-NULL values in the group.

/* IMP: R-50775-16353 */
# EVIDENCE-OF: R-50775-16353 Aggregate max() returns NULL if and only if
# there are no non-NULL values in the group.

R-16028-39081-19377-46684-10718-53381-04734-64750 tcl slt th3 src

The min() aggregate function returns the minimum non-NULL value of all values in the group.

/* IMP: R-16028-39081 */
# EVIDENCE-OF: R-16028-39081 The min() aggregate function returns the
# minimum non-NULL value of all values in the group.

R-30311-39793-14973-30919-34186-11921-51287-47112 tcl slt th3 src

The minimum value is the first non-NULL value that would appear in an ORDER BY of the column.

/* IMP: R-30311-39793 */
# EVIDENCE-OF: R-30311-39793 The minimum value is the first non-NULL
# value that would appear in an ORDER BY of the column.

R-10396-30188-46343-25997-25410-36538-31299-06809 tcl slt th3 src

Aggregate min() returns NULL if and only if there are no non-NULL values in the group.

/* IMP: R-10396-30188 */
# EVIDENCE-OF: R-10396-30188 Aggregate min() returns NULL if and only if
# there are no non-NULL values in the group.

R-58261-63259-31112-34122-01382-46669-15924-59329 tcl slt th3 src

The sum() and total() aggregate functions return sum of all non-NULL values in the group.

/* IMP: R-58261-63259 */
# EVIDENCE-OF: R-58261-63259 The sum() and total() aggregate functions
# return sum of all non-NULL values in the group.

R-44223-43966-50481-12161-32962-54841-33868-44497 tcl slt th3 src

If there are no non-NULL input rows then sum() returns NULL but total() returns 0.

/* IMP: R-44223-43966 */
# EVIDENCE-OF: R-44223-43966 If there are no non-NULL input rows then
# sum() returns NULL but total() returns 0.

R-07734-01023-35400-33877-62605-53392-63637-26399 tcl slt th3 src

The result of total() is always a floating point value.

/* IMP: R-07734-01023 */
# EVIDENCE-OF: R-07734-01023 The result of total() is always a floating
# point value.

R-19660-56479-36342-33235-14845-36400-09046-33188 tcl slt th3 src

The result of sum() is an integer value if all non-NULL inputs are integers.

/* IMP: R-19660-56479 */
# EVIDENCE-OF: R-19660-56479 The result of sum() is an integer value if
# all non-NULL inputs are integers.

R-47496-23053-18561-13621-46143-05639-50277-51479 tcl slt th3 src

If any input to sum() is neither an integer or a NULL then sum() returns a floating point value which might be an approximation to the true sum.

/* IMP: R-47496-23053 */
# EVIDENCE-OF: R-47496-23053 If any input to sum() is neither an integer
# or a NULL then sum() returns a floating point value which might be an
# approximation to the true sum.

R-08904-24719-11346-47287-22123-01310-57737-05262 tcl slt th3 src

Sum() will throw an "integer overflow" exception if all inputs are integers or NULL and an integer overflow occurs at any point during the computation.

/* IMP: R-08904-24719 */
# EVIDENCE-OF: R-08904-24719 Sum() will throw an "integer overflow"
# exception if all inputs are integers or NULL and an integer overflow
# occurs at any point during the computation.

R-19553-64528-24132-56992-22388-20387-05422-50188 tcl slt th3 src

Total() never throws an integer overflow.

/* IMP: R-19553-64528 */
# EVIDENCE-OF: R-19553-64528 Total() never throws an integer overflow.