当前位置:网站首页>Alibaba Tianchi SQL training camp learning notes 5
Alibaba Tianchi SQL training camp learning notes 5
2022-06-30 19:29:00 【Game programming】
This note is about Alibaba cloud Tianchi Longzhu project SQL Learning content of training camp , Link to :https://tianchi.aliyun.com/specials/promotion/aicampsql;
Window function
The window function is also called OLAP function .OLAP yes OnLine AnalyticalProcessing For short , It means real-time analysis and processing of database data .
For the sake of understanding , It is called window function . The conventional SELECT Statements are used to query the whole table , The window function allows us to selectively summarize some data 、 Calculate and sort .
General form of window function :
< Window function > OVER ([PARTITION BY < Name >]
ORDER BY < Column names for sorting >)
[] Can be omitted .
The key of window function is to understand the keyword PARTITON BY and ORDER BY ***** The role of .
PARTITON BY Is used to group , That is, select which window you want to see , Be similar to GROUP BY Clause grouping function , however PARTITION BY Clause does not have GROUP BY The summary function of clause , It does not change the number of rows recorded in the original table .
ORDER BY It's used to sort , That is, in the decision window , According to that rule ( Field ) To sort .
For the most part , Window functions can be divided into two categories .
One is take SUM、MAX、MIN Aggregate functions such as are used in window functions
Two is RANK、DENSE_RANK And other special window functions for sorting
author : Chumei ChuM
Game programming , A game development favorite ~
If the picture is not displayed for a long time , Please use Chrome Kernel browser .
边栏推荐
- JS string interception method summary
- 嵌入式软件开发新趋势:DevOps
- Memory Limit Exceeded
- 拓維信息使用 Rainbond 的雲原生落地實踐
- mysql下载和安装详细教程
- MySQL download and installation tutorial
- 微信小程序快速入门 --项目介绍
- Year after year, why is breaking the data island still the primary task of enterprise development
- Entry node of link in linked list - linked list topic
- ArcGIS no plug-in load (no offset) day map
猜你喜欢

德国AgBB VoC有害物质测试

Swin-transformer --relative positional Bias

Practice and Thinking on the architecture of a set of 100000 TPS im integrated message system

力扣------统计包含给定前缀的字符串

sqlserver SQL Server Management Studio和Transact-SQL创建账户、创建访问指定数据库的只读用户

小小笔记-整型提升(C语言)

Cobbler is easy to use

Pyth-Solana链上联通现实的桥梁

设计电商秒杀系统

Some interesting modules
随机推荐
【DesignMode】工厂模式 (factory pattern)
RFFE中MIPI协议
CODING 正式入驻腾讯会议应用市场!
年复一年,为什么打破数据孤岛还是企业发展的首要任务
mysql修改数据类型_MySQL修改字段类型[通俗易懂]
Practice and Thinking on the architecture of a set of 100000 TPS im integrated message system
VMware16安装Win11虚拟机(最全步骤+踩坑)
ArcGIS无插件加载(无偏移)天地图
Swin-transformer --relative positional Bias
mysql中union和union all的区别
VS 常用的快捷键指令
MySQL recursion
Four tips tell you how to use SMS to promote business sales?
如何利用 xUnit 框架对测试用例进行维护?
究竟有哪些劵商推荐?另外,手机开户安全么?
Some interesting modules
基于 actix、async-graphql、rbatis、pgsql/mysql 构建 GraphQL 服务(4)-变更服务
Practical application of "experience" crawler in work
CTF流量分析常见题型(二)-USB流量
Entry node of link in linked list - linked list topic