当前位置:网站首页>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 .
边栏推荐
- go之web框架 iris
- MySQL download and installation tutorial
- 设计电商秒杀系统
- Practice and Thinking on the architecture of a set of 100000 TPS im integrated message system
- JVM常见问题
- Memory Limit Exceeded
- 新版EasyGBS如何配置WebRTC视频流格式播放?
- How to open a futures account safely? Which futures companies are more reliable now?
- 为什么越来越多的人选择云渲染?
- 【DesignMode】工厂模式 (factory pattern)
猜你喜欢

不同制造工艺对PCB上的焊盘的影响和要求

Regular expressions (regular matching)

Evolution of screen display technology

Cobbler is easy to use

Browser window switch activation event visibilitychange

Connect to lab server

Ansi/ul 94 class 5-V vertical combustion test

Kalman滤波器--从高斯融合推导

Year after year, why is breaking the data island still the primary task of enterprise development
![20220528 [talk about fake chips] those who are greedy for cheap often suffer heavy losses. Take stock of those fake memory cards and solid state drives](/img/96/8e195536127b90d4eec54294371cad.png)
20220528 [talk about fake chips] those who are greedy for cheap often suffer heavy losses. Take stock of those fake memory cards and solid state drives
随机推荐
mysql函数获取全路径
20220528【聊聊假芯片】贪便宜往往吃大亏,盘点下那些假的内存卡和固态硬盘
不同制造工艺对PCB上的焊盘的影响和要求
简述机器学习中的特征工程
Go redis connection pool
Nodejs installation and introduction
连接实验室服务器
Teach you how to write selenium test cases
Brief introduction of Feature Engineering in machine learning
Practical application of "experience" crawler in work
【DesignMode】单例模式(singleton pattern)
Construction and practice of full stack code test coverage and use case discovery system
com. alibaba. fastjson. Jsonobject tojsonstring eliminate circular reference
Huaxing Securities: kitex practice under the original hybrid Cloud Architecture
「杂谈」如何改善数据分析工作中的三大被动局面
com.alibaba.fastjson.JSONObject # toJSONString 消除循环引用
rust配置国内源
Redis入门到精通01
mysql下载和安装详细教程
全技术栈、全场景、全角色云原生系列培训重磅首发,助力企业打造硬核云原生技术团队