当前位置:网站首页>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 .
边栏推荐
- 熵-条件熵-联合熵-互信息-交叉熵
- sql是否走索引
- 一文详解|Go 分布式链路追踪实现原理
- 配置服务器环境
- How does rust implement dependency injection?
- 微信小程序快速入门 --项目介绍
- com. alibaba. fastjson. Jsonobject tojsonstring eliminate circular reference
- Nodejs installation and introduction
- 20220607 fell below the recommended retail price, and the GPU market is moving towards oversupply
- 设计电商秒杀系统
猜你喜欢

ArcGIS no plug-in load (no offset) day map

假期安全不放假,VR交通让孩子安全出行|广州华锐视点

Evolution of screen display technology

Opencv data type code table dtype

如何使用物联网低代码平台进行服务管理?

Evolution of screen display technology

Personally test the size of flutter after packaging APK, quite satisfied
![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

Pyth Solana is a bridge connecting reality on the chain

Regular expressions (regular matching)
随机推荐
Development: how to install offline MySQL in Linux system?
Cobbler轻松上手
小小笔记-整型提升(C语言)
Redis beginner to master 01
mysql下载和安装详细教程
Nodejs installation and introduction
如何使用物联网低代码平台进行服务管理?
CTF flow analysis common questions (II) -usb flow
Delete duplicate elements in the sorting linked list ii[unified operation of linked list nodes --dummyhead]
slice
NBI可视化平台快速入门教程(五)编辑器功能操作介绍
mysql函数获取全路径
Gateway服务网关
Go语言学习教程(十)
德国AgBB VoC有害物质测试
小球大小随机,随机运动碰撞
全技术栈、全场景、全角色云原生系列培训重磅首发,助力企业打造硬核云原生技术团队
Nodejs 安装与介绍
Introduction to Po mode "suggestions collection"
[community star selection] the 23rd issue of the July revision plan | bit by bit creation, converging into a tower! Huawei freebuses 4E and other cool gifts