当前位置:网站首页>Gbase 8s Group by 功能介绍
Gbase 8s Group by 功能介绍
2022-04-23 01:17:00 【八珍豆腐】
Group by语法的含义是根据(by)一定的规则将一个数据集的数据进行分组(group)。它的作用是通过一定的规则将数据划分成若干的区域,然后针对划分的各个区域进行数据处理。
如下一个表t1及表内数据:
| fruit |
place |
price |
| apple |
CHA |
$1.10 |
| apple |
USA |
$2.10 |
| banana |
CHA |
$3.10 |
| banana |
JAP |
$5 |
如果想知道一个国家有多少水果,执行如下sql:
Select place,count(*) from t1 group by place;
输入结果如下:
| place |
count |
| CHA |
2 |
| USA |
1 |
| JAP |
1 |
Group by的语法支持如下:
- 支持列名和列别名分组
- 支持int常量值(1~n),映射投影列的编号作为group by的分组列。
版权声明
本文为[八珍豆腐]所创,转载请带上原文链接,感谢
https://blog.csdn.net/weixin_57486087/article/details/124323384
边栏推荐
- On regular expression matching cryptography
- Smart business card applet business card details page function implementation key code
- Processus d'analyse et de configuration du matériel IIC pour le développement de la machine nue imx6ull
- Research and application of power monitoring system in sports training center
- 体育训练中心项目电力监控系统的研究与应用
- Interview eight part essay (disorderly order, no classification)
- What is tooljet and how about it—— Evaluation of low code development platform
- Earth day collection: Microsoft and Intel invite you to get the green Ambassador badge and give you negative carbon emission!
- Huawei CDN is fast everywhere
- Daily practice (47): find different
猜你喜欢

Workplace PUA, five sins of managers

Research and application of power monitoring system for employee apartment building construction project
![[HCTF 2018]admin](/img/08/8111f2f87796dda8dd6b0dcf72c42b.png)
[HCTF 2018]admin

Introduction to Alibaba's super large-scale Flink cluster operation and maintenance system

Tdengine deployment cluster installation

Generating class diagram with EA reverse engineering code

Selection and evolution of microservices under cloud native architecture

200. Number of islands

On regular expression matching cryptography

世界读书日:18本豆瓣评分9.0以上的IT书值得收藏
随机推荐
Can you really cross with a k-fold? Thoughts on k-fold intersection
光猫超级帐号密码,重置光猫获取超级帐号密码
Activity preview | on April 23, a number of wonderful openmldb sharing came, which lived up to the good time of the weekend!
为企业出海“搭桥”,汇量科技靠什么出圈?
世界读书日:18本豆瓣评分9.0以上的IT书值得收藏
What is October 24th? Why are there no senior programmers in China in their fifties and sixties, while foreigners,,, Yu Nianyu Hui take you to celebrate the 1024 programmer Festival
VRF in Mina
[the first contact between Android engineers and smart home products ③] the specific implementation of smartconfig one key distribution network on the hardware side | the specific implementation of es
Examples of branch and loop statements
"Open source summer" activity is hot. In the registration, rich bonuses are waiting for you to get!
Research and application of power monitoring system in sports training center
Android本地数据库基础操作|多线程操作数据库|数据库的增删改查|批量插入数据库|线程池基础使用|玉念聿辉
Acrel-2000型电力监控系统在兴庆坊新兴广场配电所配电回路用电的实时监控和管理
Design and application of intelligent lighting control system in hospital
Hardware IIC analysis and configuration process of imx6ull bare metal development
Secret of 66% performance surge: AMD 25000 yuan 768mb 3D cache Xiaolong opened the cover for the first time
Three technical solutions of ant group were selected as "typical solutions for information technology application and innovation in 2021"
The more "intelligent" the machine is, the easier it is for data taggers to be eliminated? Manfu Technology
The origin explanation and use example of image pre training model
IMX6ULL裸机开发之EPIT周期性定时器分析及配置过程