当前位置:网站首页>查询某时间段获得的积分总积分的大小进行排序
查询某时间段获得的积分总积分的大小进行排序
2022-08-09 03:53:00 【太阳的后裔】
小编前不久遇见一个按照某时间段获取的积分降序查询,乍一看又是聚合函数和排序结合的查询方式,怎么做呢?废话不多数来看代码
select a.UserId,a.RealName,sum(b.Points) as TotalPoints from IntellManuSchool_UserInfo as a
inner join IntellManuSchool_UserPoints as b on a.UserId=b.UserId where a.EnterpriseId=10
and b.AddTime>='2022-05-01' and b.AddTime<='2022-06-01'
group by a.UserId,a.RealName
order by TotalPoints desc
group by 在前 order by在后
如果一生定一个目标的话,你希望会是什么?
前不久看了一部《王的盛宴》,我觉得项羽的失败不在于他自大狂妄,也不在于天意,而在于他自己的目标,他从未想过有一天统一四海,而是推翻秦朝;刘邦的成功在于,上下一心,他的部将早就将刘邦视为天选之人,而这也恰好迎合了他的心思。
一生要定一个什么样的目标才能光宗耀祖又能赢得幸福?
边栏推荐
- 机器人工程师入门知识框架(思维导图)
- 了解CV和RoboMaster视觉组(五)运动建模与预测
- leetcode 1805. 字符串中不同整数的数目
- If A, B, C, and D process parts, the total number of processed parts is 370. If the number of parts processed by A is 10 more, if the number of parts processed by B is 20 less, if the number of parts
- Win10开始菜单打不开怎么办?
- 松柏集(浮窗思)
- 给一时兴起想要学习 “ 测试 ” 的同学的几条建议.....
- 宝塔实测-在线药店商城源码带WAP版
- 关于微软2022/2023秋招内推的几句
- 模型包装,答辩吹牛方法论!
猜你喜欢
光刻机随感
了解CV和RoboMaster视觉组(五)滤波器、观测器和预测方法:粒子滤波器Particle Filter
el-popover 内嵌 el-table 后位置错位 乱飘 解决方案
The condition variable condition_variable implements thread synchronization
松柏集(浮窗思)
Leetcode Brushing Questions - 148. Sort Linked List
HyperLynx(四)差分传输线模型
Error detected while processing /home/test/.vim/plugin/visualmark.vim
创建一个DAPP的全流程
全链路UI设计笔记
随机推荐
The condition variable condition_variable implements thread synchronization
链接脚本-变量使用中遇到一个问题
07.1 Supplements to the class
『HarmonyOS』Page与AbilitySlice的生命周期
cmd路径空格问题解决方案
QQ浏览器 replaceAll方法 is not a function 问题解决方法
NanoDet代码逐行精读与修改(四)动态软标签分配:dynamic soft label assigner
33 Basic Statistics - One Item Nonparametric Test
UI中级操作(倾斜和雷达效果)
MKNetworkKit更换域名时错误解决方法
A few words about Microsoft's 2022/2023 autumn recruits
【平衡二叉搜索树】细撕AVL树的插入操作
leetcode 5709. 最大升序子数组和
网络设置、ssh服务
30 norm
31 基本统计概念
机器人工程师入门知识框架(思维导图)
Swift3.0设置状态栏的背景颜色与文字颜色
2022-08-08 The fifth group Gu Xiangquan study notes day31-collection-junit unit test
了解CV和RoboMaster视觉组(五)local-distribution汇聚方法