北是什么生肖| 斯德哥尔摩综合症是什么意思| 皮肤角质化用什么药膏| 慧根是什么意思| 两小无猜什么意思| 银装素裹是什么意思| Continental什么牌子| 玉米吃多了有什么坏处| 西红柿拌白糖又叫什么| fisherman是什么意思| 2022年属虎的是什么命| 眼睛发黄是什么原因引起的| 胃疼是什么病| 胰岛素高是什么原因| 什么是什么的眼睛| 自制力是什么意思| 穆字五行属什么| 万劫不复是什么意思| 尿道感染用什么药| 仿水晶是什么材质| 资产负债率高说明什么| 什么工作赚钱最快| 什么鱼最好养| 每天吃葡萄有什么好处和坏处| 梦到生女儿是什么意思| 物理压榨油是什么意思| 什么是肺腺瘤| 蚂蚁森林有什么用| 肢体拘挛是什么意思| 嘴唇轻微发麻什么病兆| 吃什么助勃药能硬| 女生真空是什么意思| 瓜田李下是什么意思| 贡品是什么意思| 免疫十一项都检查什么| 抑郁症是什么病| 梦见自己在洗澡是什么意思| 愤青什么意思| 血压为什么晚上高| 三七粉做面膜有什么功效| 爱之深恨之切是什么意思| 凌波仙子是什么意思| 肝硬化是什么引起的| 安徽属于什么地区| 什么人不能种生基| 肾病有什么症状男性| 刘禹锡是什么朝代的| pt950是什么意思| 女人生气容易得什么病| 一月8日是什么星座| ea7是什么品牌| 眼轴是什么意思| 八仙过海是什么生肖| 来减一笔是什么字| 积分落户是什么意思| 传染病八项包括什么| 血稠是什么原因引起的| 脚底板痛什么原因| 什么样的电动牙刷好| 灼热是什么意思| 梦见对象出轨什么征兆| 右耳朵疼是什么原因| 胃痛怎么办吃什么药| 兔子的尾巴像什么| 肌红蛋白偏低说明什么| 剧透是什么意思| 什么是三有保护动物| 做眉毛有什么危害| 湿疹长什么样子| 家里进蝴蝶有什么预兆| 谷氨酰基转移酶高是什么原因| 什么察秋毫| 蜥蜴人是什么| 尖锐湿疣是什么病| 青光眼是什么意思| 海洋中最大的动物是什么| 凌晨5点是什么时辰| 早餐可以吃什么| aug是什么意思| 2019属什么生肖| 农历是什么生肖| fe是什么元素| 黄褐斑是什么样的图片| 老人喝什么牛奶比较好| 什么是零售| 头昏吃什么药效果最好| 玫瑰花有什么作用| 戒烟后为什么会发胖| 一路繁花的意思是什么| 四物汤什么时候喝| 口子念什么| 宽字五行属什么| rv是什么意思| 吃什么能快速补血| 伴侣是什么| 软饮是什么意思| 吃什么食物对眼睛好| c反应蛋白偏高说明什么| 什么茶养胃又治胃病| 茯苓是什么东西| 甲钴胺片是治什么的| 2月18是什么星座| 8月30号是什么星座| 乙酰氨基葡萄糖苷酶阳性什么意思| 细胞学说揭示了什么| 梦到前夫什么意思| 90岁属什么生肖| 已知晓是什么意思| mr检查是什么意思| 海参什么样的好| 行经是什么意思| 四川地震前有什么预兆| 什么是抽动症| 人中之龙是什么意思| 尿发黄是什么原因男性| 紫菜是什么植物| 左侧小腹疼是什么原因| 为什么这么热| 大腿内侧什么经络| 纯碱是什么| 肌酐高什么原因引起的| 花生不能和什么食物一起吃| 正太是什么| 门面是什么意思| 顾影自怜什么意思| 血瘀吃什么中成药| bb霜和粉底液有什么区别| 肝脂肪沉积是什么意思| 蜂蜡是什么东西| 嘴酸是什么原因引起| 片是什么| 备孕检查挂什么科| 女人舌苔厚白吃什么药| 嘴巴发苦吃什么药| 囊性灶什么意思严重吗| 左下腹部是什么器官| 流口水是什么原因| 安吉白茶属于什么茶| 喉咙有痰吐出来有血是什么原因| 什么叫吐槽| 国防科技大学毕业是什么军衔| 鳄鱼的天敌是什么| sig是什么意思| 什么体质的人戴银变黑| 血糖高什么东西不能吃| 7月15日是什么星座| 左舌根疼痛是什么情况| 六月二十八是什么日子| 什么的星星| 为什么要拔掉智齿| 陪伴是最长情的告白下一句是什么| 男性内分泌科检查什么| 反流性食管炎可以吃什么水果| 肝炎吃什么药好| 1226是什么星座| 米黄配什么颜色好看| gap是什么牌子的衣服| 免签国家是什么意思| 文替是什么意思| 一什么一什么| 博字属于五行属什么| 乳腺增生看什么科室| 姐姐的孩子叫什么| 硬气是什么意思| 醋栗是什么东西| 飞行模式是什么意思| 颠三倒四是什么意思| 狗咬了不能吃什么| 今天什么节日| 青羊药片有什么功效| lof是什么基金| 方便是什么意思| 一个虫一个圣读什么| 野生刺猬吃什么| 吃什么补津液| 脚心发痒是什么原因| 吃什么可以增加抵抗力和免疫力| 己亥是什么意思| 慢性活动性胃炎是什么意思| 出马仙是什么意思| 漂白粉是什么| 脑供血不足用什么药| 岁月匆匆像一阵风是什么歌| 镁是什么| 梦见自己小便是什么意思| 最近老放屁是什么原因| 御木本是什么档次| 米粉是用什么做出来的| 胸闷要做什么检查| 农历六月十一是什么星座| 脸上长白斑是什么原因| 来月经前胸胀痛什么原因| 甲状腺五类是什么意思| 刀伤用什么药愈合最快| 维吾尔族是什么人种| 去医院看头发挂什么科| 麻腮风是什么| 每天半夜两三点醒是什么原因| 口腔异味挂什么科| 一个月一个亏念什么| 支原体是什么病| 什么叫肽| ct与核磁共振有什么区别| 258是什么意思| 甲钴胺片治疗什么病| 额是什么意思| 梦见涨水是什么兆头| 肝右叶钙化灶什么意思| 什么是碱性磷酸酶高怎么回事| 吕布属什么生肖| 吃小米粥有什么好处| 退位让贤是什么意思| 舌尖红是什么原因| 玉树临风是什么意思| 经常梳头有什么好处| 61年属什么| 黄体酮吃多了有什么副作用| 狮子吃什么食物| 什么样的房子风水好| 手经常出汗是什么原因| 鼻子一直流血是什么原因| 1942年属什么生肖属相| 甲醛对人体有什么危害| 入伙是什么意思| 五是什么生肖| 黑猫进家门预示着什么| 什么属相不能带狗牙| 孩子咳嗽能吃什么水果| 杀阴虱用什么药最快| 鲁迅的真名叫什么| 台湾是什么民族| 联姻是什么意思| 姚字五行属什么| 心悸吃什么中成药| 海鲜有什么| 玉米热量高为什么还减肥| 老上火是什么原因造成的| 郭靖属什么生肖| 避孕药吃了有什么副作用| 2023年什么年| 二级乙等医院什么档次| 男生喜欢什么样的女生| pigeon是什么牌子| 结石长什么样子图片| 待客是什么意思| 肠炎不能吃什么东西| 胃疼有什么办法缓解| 烦闷是什么意思| 耄耋什么意思| 什么是氙气| cmyk代表什么颜色| 违法是什么意思| 肠胃炎吃什么消炎药| 什么叫胆汁反流性胃炎| 地铁和高铁有什么区别| 8月7号是什么星座| 湿疹用什么药最有效| 透骨草治什么病最有效| 2月1日是什么星座| 毛孔粗大用什么药膏| 蒲公英能治什么病| 飞鸟集讲的是什么| 喉癌是什么原因引起的| 11月30号是什么星座| 百度
Small. Fast. Reliable.
Choose any three.
Built-in Aggregate Functions

MR医学上是什么意思

百度 三是“看得好病”,初步做到了“大病不出市属医院”,让杭州人和“新杭州人”都能享受到“国内领先、世界一流”医院提供的优质医疗服务。

aggregate-function-invocation:

aggregate-func ( DISTINCT expr ) filter-clause , * ORDER BY ordering-term ,

expr:

filter-clause:

ordering-term:

The aggregate functions shown below are available by default. There are two more aggregates grouped with the JSON SQL functions. Applications can define custom aggregate functions using the sqlite3_create_function() interface.

In any aggregate function that takes a single argument, that argument can be preceded by the keyword DISTINCT. In such cases, duplicate elements are filtered before being passed into the aggregate function. 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.

If a FILTER clause is provided, then only rows for which the expr is true are included in the aggregate.

If an ORDER BY clause is provided, that clause determines the order in which the inputs to the aggregate are processed. For aggregate functions like max() and count(), the input order does not matter. But for things like string_agg() and json_group_object(), the ORDER BY clause will make a difference in the result. If no ORDER BY clause is specified, the inputs to the aggregate occur in an arbitrary order that might change from one invocation to the next.

See also: scalar functions and window functions.

2. List of built-in aggregate functions

3. Descriptions of built-in aggregate functions

avg(X)

The avg() function returns the average value of all non-NULL X within a group. String and BLOB values that do not look like numbers are interpreted as 0. The result of avg() is always a floating point value whenever there is at least one non-NULL input even if all inputs are integers. The result of avg() is NULL if there are no non-NULL inputs. The result of avg() is computed as total()/count() so all of the constraints that apply to total() also apply to avg().

count(X)
count(*)

The count(X) function returns a count of the number of times that X is not NULL in a group. The count(*) function (with no arguments) returns the total number of rows in the group.

group_concat(X)
group_concat(X,Y)
string_agg(X,Y)

The group_concat() function returns a string which is the concatenation of all non-NULL values of X. If parameter Y is present then it is used as the separator between instances of X. A comma (",") is used as the separator if Y is omitted.

The string_agg(X,Y) function is an alias for group_concat(X,Y). String_agg() is compatible with PostgreSQL and SQL-Server and group_concat() is compatible with MySQL.

The order of the concatenated elements is arbitrary unless an ORDER BY argument is included immediately after the last parameter.

max(X)

The max() aggregate function returns the maximum value of all values in the group. The maximum value is the value that would be returned last in an ORDER BY on the same column. Aggregate max() returns NULL if and only if there are no non-NULL values in the group.

min(X)

The min() aggregate function returns the minimum non-NULL value of all values in the group. The minimum value is the first non-NULL value that would appear in an ORDER BY of the column. Aggregate min() returns NULL if and only if there are no non-NULL values in the group.

sum(X)
total(X)

The sum() and total() aggregate functions return the sum of all non-NULL values in the group. If there are no non-NULL input rows then sum() returns NULL but total() returns 0.0. NULL is not normally a helpful result for the sum of no rows but the SQL standard requires it and most other SQL database engines implement sum() that way so SQLite does it in the same way in order to be compatible. The non-standard total() function is provided as a convenient way to work around this design problem in the SQL language.

The result of total() is always a floating point value. The result of sum() is an integer value if all non-NULL inputs are integers. If any input to sum() is neither an integer nor a NULL, then sum() returns a floating point value which is an approximation of the mathematical sum.

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. No overflow error is ever raised if any prior input was a floating point value. Total() never throws an integer overflow.

When summing floating-point values, if the magnitudes of the values differ wildly then the resulting sum might be imprecise due to the fact that IEEE 754 floating point values are approximations. Use the decimal_sum(X) aggregate in the decimal extension to obtain an exact summation of floating point numbers. Consider this test case:

CREATE TABLE t1(x REAL);
INSERT INTO t1 VALUES(1.55e+308),(1.23),(3.2e-16),(-1.23),(-1.55e308);
SELECT sum(x), decimal_sum(x) FROM t1;

The large values ±1.55e+308 cancel each other out, but the cancellation does not occur until the end of the sum and in the meantime the large +1.55e+308 swamps the tiny 3.2e-16 value. The end result is an imprecise result for the sum(). The decimal_sum() aggregate generates an exact answer, at the cost of additional CPU and memory usage. Note also that decimal_sum() is not built into the SQLite core; it is a loadable extension.

If sum of inputs is too large to represent as a IEEE 754 floating point value, then a +Infinity or -Infinity result may be returned. If very large values with differing signs are used such that the SUM() or TOTAL() function is unable to determine if the correct result is +Infinity or -Infinity or some other value in between, then the result is NULL. Hence, for example, the following query returns NULL:

WITH t1(x) AS (VALUES(1.0),(-9e+999),(2.0),(+9e+999),(3.0))
 SELECT sum(x) FROM t1;

This page last modified on 2025-08-07 13:08:22 UTC

百度