Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Aggregators

Mathias Rangel Wulff edited this pageMay 9, 2017 ·7 revisions

Aggregators supported by AlaSQL

SQL Standard

  • SUM()
  • AVG()
  • COUNT()
  • MAX()
  • MIN()
  • FIRST()
  • LAST()

Examples:

SELECTCOUNT()SELECTCOUNT(one)SELECTCOUNT(*)

Non-standard

  • AGGR() – operations on aggregated values
  • ARRAY() – create array of values
  • QUART() - 1st quartile
  • QUART2() - 2nd quartile
  • QUART3() - 3rd quartile
  • User-defined aggregators

Quartile aggregations are based on the European calculation.

Example of AGGR() aggregator (here avg1 = avg2)

SELECTSUM(a)AS sm,COUNT(*)AS cnt, \           AGGR(sm/cnt)AS avg1,AVG(a)AS avg2FROM data

© 2014-2026,Andrey Gershun &Mathias Rangel Wulff

Please help improve the documentation by opening a PR on thewiki repo

Clone this wiki locally


[8]ページ先頭

©2009-2025 Movatter.jp