当前位置:网站首页>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
边栏推荐
- Get in the car, the era of intelligent database autonomy has come, and Tencent cloud database x AI has made a new breakthrough
- Zhang Jian of Huawei cloud IOT expert group: he has become a senior engineer of Huawei since he was 22. The code is what I want to say to the world
- 留给给5月的文章
- Getting started with the go language is simple: the sortints method in sort
- Application of acrel-3200 remote prepaid electric energy management system in Fuzhou Wanbao Industrial Park
- Alibaba cloud container & Service Grid product technology trends (202203)
- Common problems and solutions of crashsight access reporting
- Originally, this is the correct posture for developers to open world book day!
- C language guessing game and trickery game
- How does zhiting connect Xiaomi smart speakers?
猜你喜欢

gin--hello

World reading day: 18 it books with Douban score above 9.0 are worth collecting

Im instant messaging development how to design a database that can support millions of concurrent users

智能照明控制系统在医院的设计与应用

Let's talk about ruby

Selection and evolution of microservices under cloud native architecture

gin -get请求的小示例1-Handle处理GET请求

Generating class diagram with EA reverse engineering code

京東一面:子線程如何獲取父線程 ThreadLocal 的值?我蒙了。。。

Detailed explanation of Milvus 2.0 quality assurance system
随机推荐
What is the legal basis and procedure for Tami dog sharing | state owned equity transfer?
The code bought from the salted fish | SSM hotel room management system | whether the purchased source code can really be used | confusion from the programmer | Yu Nianyu Hui | Wu Minghui, dachou Vill
Flash project cross domain interception and DBM database learning [Baotou cultural and creative website development]
Open WebRTC Toolkit(OWT) Server User Guide
Use Charles to grab app package
Ampere computing releases the computing power of observation cloud "core" and jointly promotes the development of observability
【以太网交换安全】--- 交换机流量控制/DHCP Snooping/IP Source Guard
Frequently asked questions about recent BSN development
安全用电管理平台在靖边博物馆安全用电管理系统的应用
Smart business card applet business card details page function implementation key code
API IX JWT auth plug-in has an error. Risk announcement of information disclosure in response (cve-2022-29266)
[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
After ten years of testing experience, I have sorted out the most suitable software testing learning guide for you
IMX6ULL裸机开发之硬件IIC分析及配置过程
JD side: how can a child thread get the value of the parent thread ThreadLocal? I got...
Project manager's thinking mode worth trying: project success equation
Jijian cloud x servicego: help hardware manufacturers realize intelligent management of equipment repair and maintenance
Android本地数据库基础操作|多线程操作数据库|数据库的增删改查|批量插入数据库|线程池基础使用|玉念聿辉
京东一面:子线程如何获取父线程 ThreadLocal 的值?我蒙了。。。
Interview eight part essay (disorderly order, no classification)