当前位置:网站首页>Gbase8s database select has order by Clause 6
Gbase8s database select has order by Clause 6
2022-06-29 12:18:00 【Like to eat radish ice cold】
You may exclude CONNECT BY Clauses SELECT The final of the clause ORDER BY Clause includes OLAP
window function .
If in ORDER BY Clause OLAP Function clause , It's in ORDER BY Before evaluation , Evaluate first OLAP Letter
Count .
Generally speaking , For including one or more OLAP window The function is simple SELECT sentence , The database server follows
The following processing order :
Connect any connection 、 filter 、GROUP BY or HAVING The specification is applied to get a collection of qualified rows , Come on
Return as a query set .
To create a matching row window Partition , And will designate OLAP Function is applied to each partitioned result set ( or
Apply to this query result set , If no partition is defined ) Each line in .
take SELECT Of the statement ORDER BY Clause is applied to the final query result .
For nested queries , Each subquery follows the above order , But will OLAP window Partition and its OLAP The function applies to the most
The result set of the subquery , Define the... In it OLAP window.
If OLAP window Include window ORDER Clause , Then that clause , instead of SELECT Of the statement ORDER
BY Clause , Definition window ROW_NUMBER Functions in the same OLAP window The rows assigned to these rows in the partition of
Number . However ,window ORDER Clause does not define the sort of the query result set , from SELECT Of the statement ORDER BY Son
Sentence definition .
If OLAP window barring window ORDER Clause , In any order window ROW_NUMBER
The function assigns the row number to these rows , As returned by a query or subquery , Not based on SELECT Any of the statements
ORDER BY Clause .
边栏推荐
猜你喜欢

模糊图片变清晰,一键双色图片,快速整理本地图片...这8个在线图片工具申请加入你的收藏夹!

Artbench: the first class balanced, high-quality, clean annotated and standardized artwork generation data set

高校如何基于云原生构建面向未来的智慧校园?全栈云原生架构VS传统IT架构

Helping the ultimate experience, best practice of volcano engine edge computing

保障饮用水安全!番禺沙湾水道水质在线监测系统通过验收

& 3 view request message and response message in browser

又一所“省会大学”,来了!

MySQL 主从复制原理以及流程

ONES 创始人王颖奇对话《财富》(中文版):中国有没有优秀的软件?

Ttchat x Zadig open source co creates helm access scenarios, and environmental governance can be done!
随机推荐
Take another picture of cloud redis' improvement path
Li Kou daily question - day 31 -13 Maximum perimeter of triangle
Students' programming stories
爱可可AI前沿推介(6.29)
Gbase 8s extended external connection 1
Artbench: the first class balanced, high-quality, clean annotated and standardized artwork generation data set
GBase8s数据库select有ORDER BY 子句1
Is the table queried by this EMR sparksql node ODPs?
每周推荐短视频:爱因斯坦是怎样思考问题的?
《Go题库·14》WaitGroup的坑
Jerry's about TWS pairing mode configuration [chapter]
ArtBench:第一个类平衡的、高质量的、干净注释的和标准化的艺术品生成数据集
Ttchat x Zadig open source co creates helm access scenarios, and environmental governance can be done!
LM07丨细聊期货横截面策略
shell判断命令是否执行成功
求大数的阶乘 ← C语言
对p值的理解
AUTOCAD——文字显示方式、CAD怎么直接打开天正图纸
东方财富证券开户安全吗 证券开户办理
RSLO:自监督激光雷达里程计(实时+高精度,ICRA2022)