当前位置:网站首页>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 .
边栏推荐
猜你喜欢

Entry node of link in linked list - linked list topic

Cobbler is easy to use

小球大小随机,随机运动碰撞

设计电商秒杀系统

Entropy - conditional entropy - joint entropy - mutual information - cross entropy

Business Intelligence BI and business management decision-making thinking 4: business cost analysis

Gateway服务网关

Evolution of screen display technology

Some interesting modules

浏览器窗口切换激活事件 visibilitychange
随机推荐
10 statistical methods commonly used for "dry goods" data analysis, with key application scenarios attached
20200525-生物技术-四川师范大学自考生物技术(本科)考试计划.txt
How to use xUnit framework to maintain test cases?
ArcGIS no plug-in load (no offset) day map
dtd建模
torch. roll
如何使用物联网低代码平台进行服务管理?
mysql中union和union all的区别
mysql 递归
如何利用 xUnit 框架对测试用例进行维护?
Delete duplicate elements in the sorting linked list ii[unified operation of linked list nodes --dummyhead]
Introduction to Po mode "suggestions collection"
sqlserver SQL Server Management Studio和Transact-SQL创建账户、创建访问指定数据库的只读用户
小小笔记-整型提升(C语言)
ArcGIS无插件加载(无偏移)天地图
mysql修改数据类型_MySQL修改字段类型[通俗易懂]
com. alibaba. fastjson. Jsonobject tojsonstring eliminate circular reference
20200525 Biotechnology - Sichuan Normal University self taught Biotechnology (undergraduate) examination plan txt
Swin-transformer --relative positional Bias
法国A+ 法国VOC标签最高环保级别