当前位置:网站首页>Thirty nine - SQL segment / group summary of data content
Thirty nine - SQL segment / group summary of data content
2022-06-09 10:37:00 【BerryBC】
1. This moment
The heart is not beating quietly , Do not care about the existence of the former and the latter , Is the same , Or not beautiful .
Brownian motion is a lovely soul Release , It's like a string of five moons in the sky , It is not without loveliness .
2. Why bother to say
Within words And Beyond words Everything , Such as origin and Between objects The relationship between , If we have to The current number degree By the number of changes , How passive .
stubborn Beyond words .
Within words, for example :SQL Statement query age segment grouping query
Ruocha Numerous numbers Or to The number of Dharma changes Why Never say ?
3. Beyond words
3-1) Are divided into segments
SELECT Round([Sales]/100,0)*100 AS SalesBin, Count(Data.Sales) AS CountOfSales
FROM Data
GROUP BY Round([Sales]/100,0)*100;
All in paragraphs , So Hundred points , One suit is different said , Get it in different numbers , Fortunately .
3-1) There are several paragraphs from it
I have a mode like :
creat table Bin
Level MinValue
1 40
2 36
3 32
4 27
5 22
6 17
7 13
8 9
9 6
10 4
11 2
12 1
In other words :
SELECT Bin.Level, Bin.MinValue, Count(Data.[Sales]) AS [CountOfSales]
FROM Bin, Data
# If not , Do not add
WHERE (((Data.Sales)<[Bin].[MinValue] And (Data.Sales)>0))
# ------
GROUP BY Bin.Level, Bin.MinValue;
Get one with Level Subject matter Add up Number of .
4. If there is any celebration , Then think and think with luck
A thousand lines will be finished in a few minutes , innumerable What happened , can Table depots also .
Rules are to the world , Not with special skills .
边栏推荐
- InfoQ geek media's 15th anniversary solicitation 𞓜 migration of Eureka to Nacos: dual registration and dual subscription model
- WPF 实现带明细的环形图表
- Authentication successful processor
- C语言与Lua的交互(实践二)
- 同花顺上面开户安全吗
- 人大金仓再次荣获“国家鼓励的重点软件企业”认定
- Cyclic neural network theory -- [torch learning notes]
- Flitter generate Poster
- Security monitoring video easycvr video access interface adds the close button of a single video
- leetcode. 36 --- effective Sudoku
猜你喜欢

损失 3 亿美元后,IBM 宣布退出俄罗斯!

InfoQ geek media's 15th anniversary solicitation 𞓜 migration of Eureka to Nacos: dual registration and dual subscription model

eBPF 在云原生环境中的应用

【水果识别】基于形态学实现水果识别含Matlab源码

TensorFlow新文档发布:新增CLP、DTensor...最先进的模型已就绪!

Interaction between C language and Lua (practice 2)

Kubernetes Chapter 7: Advanced pod, advanced controller, resource and dashboard

全球 77.5% 的网站,都在使用“世界上最好的语言” PHP!

【PHP】代码复用特殊类Trait的简要说明和相关举例

77.5% of the world's websites are using PHP, the "best language in the world"!
随机推荐
77.5% of the world's websites are using PHP, the "best language in the world"!
Custom failure handling
How to manage cloud computing platform users?
How many points can you get if the programmer's college entrance examination paper is exposed?
三拾壹- NodeJS簡單代理池(合) 之 MongoDB 鏈接數爆炸了
Other permission verification methods
肆拾伍- 正则表达式 (?=pattern) 以及 (?!pattern)
1331. array sequence number conversion - quick sort plus binary search
golang_ 3_ structural morphology
Micronet: image recognition with very low flop
eBPF 在云原生环境中的应用
[genius_platform software platform development] lesson 101st: summary of errors encountered in compiling Windows environment vs2017 for DZ products of power projects
Interview question 04.02 Minimum height tree - depth first traversal, plus tree divide and conquer
UnsupportedOperationException异常解决
视频融合云服务EasyCVR平台部署在云服务器中的配置关键点
【PHP】代码复用特殊类Trait的简要说明和相关举例
叁拾玖- SQL对数据内容 分段/分组 汇总
苹果胜诉 美法官驳回iPhone和iPad安全缺陷集体诉讼
什么样的数字藏品平台才是好平台?
Unsupportedoperationexception exception resolution