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
Mathias Rangel Wulff edited this pageJul 22, 2016 ·3 revisions

KeywordMAX

Maximal aggregator and function.

Syntax:

MAX([DISTINCT] expression)-- aggregatorMAX(expression1, expression2, ...)-- function

Unclean data

'null' will be treated as0 so if you have unclean data its suggested that you make your own aggregation withuser defined functions:

alasql.aggr.MOST=function(v,s,stage){if(stage==1)returnv;if(stage==2){if(v==null)returns;elsereturnMath.max(s,v);;}returns;};varres=alasql('SELECT MOST(a) FROM ?',[data])

See also:MIN,GREATEST

© 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