当前位置:网站首页>GBase 8s V8. 8 SQL Guide: Tutorial - 6.1.1 (1)
GBase 8s V8. 8 SQL Guide: Tutorial - 6.1.1 (1)
2022-04-22 05:26:00 【Gbase database】
6.1.1 GROUP BY Clause
GROUP BY Clause divides the table into groups . This clause is usually associated with the aggregate function group that generates the summary value for each such group
close . To write SELECT Some examples in the statement show the usage of aggregate functions applied to the entire table . This chapter should explain
Aggregation function for row groups .
Use without aggregation GROUP BY Clause and in SELECT Used in clauses DISTINCT( or UNIQUE)
Keywords are very similar . The following queries are described in selecting specific columns .
chart : Inquire about
SELECT DISTINCT customer_num FROM orders;
You can also write this statement according to the following query .
chart : Inquire about
SELECT customer_num FROM orders
GROUP BY customer_num;
chart 1 Sum graph 2 Return the following lines .
chart : Query results
customer_num
101
104
106
110
⋮
124
126
127
GROUP BY Clause collects rows into groups , Therefore, each line in each group has the same customer number . There is no choice
In the case of any other column , The end is the only customer_num List of values .
GROUP BY The function of clause is more obvious when it is used with aggregate function
版权声明
本文为[Gbase database]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204220524175719.html
边栏推荐
猜你喜欢

abcabc

Multithreaded rendering mechanism of Unreal Engine

Fundamentals of graphics - depth of field / DOF
![[WPF] customize combobox](/img/99/21298293139f6acb9d0144236b825e.png)
[WPF] customize combobox

Cookie injection

AWD platform construction – cardinal

feign调用服务,被调用服务seata事务不开启或者xid为空

Fundamentals of graphics - Ambient Occlusion

Distributed transaction Seata
![[WPF] use ellipse or rectangle to make circular progress bar](/img/5b/6153e0decf612f2a1c28093d595bb2.png)
[WPF] use ellipse or rectangle to make circular progress bar
随机推荐
Online Tetris with automatic hang-up source code
Linked list (C language)
Status mode (4.4-4.10)
Sourcetree version backtracking and single change version backtracking
Topology optimization of heat transfer based on finite volume method
Integer源码
基于有限体积法的传热拓扑优化
Apache poi HSSF operation Excel
Socket communication between server and client
SQL learning record
Send a shutdown command to the LAN computer every 30 seconds
Defining "disinformation"
使用easyexcel导出excel表格
Temporary data node usage based on unitygameframework framework
GBase 8s V8.8 SQL 指南:教程-6.1.1(4)
GBase 8s V8.8 SQL 指南:教程-5.3.1
unity接入ILRuntime之后 热更工程应用Packages下面的包方法 例如Unity.RenderPipelines.Core.Runtime包
[WPF] data template selector
Unity creates dynamic classes through reflection
Codeforces Round #783 (Div. 2) D - Optimal Partition(dp/权值线段树 2100)