当前位置:网站首页>Common sql records
Common sql records
2022-08-09 15:33:00 【Warmer °】
Get the weekday of the year
SELECTDATEPART ( YY, jobdate ) year,DATEPART ( mm, jobdate ) month,count( * ) weekdaysFROMjobrecord_workdaywhere DATEPART ( YY, jobdate )='2022'GROUP BYDATEPART ( YY, jobdate ),DATEPART ( mm, jobdate )sql deduplication according to id
with infos as(SELECT ROW_NUMBER() OVER ( PARTITION BY Infoid order by id desc) rowNum ,*FROM [InfoTops] t1 with(nolock))select * from infos where rowNum=1 --------------span>-"边栏推荐
- 除非另外还指定了 TOP、OFFSET 或 FOR XML,否则,ORDER BY 子句在视图、内联函数、派生表、子查询和公用表表达式中无效
- 看完腾讯大佬90天整理的“Redis深度笔记”,我直接当场膜拜
- word编号和文本间距过大
- What are the steps website small program development?
- 一款翻译机背后的全球经济浪潮
- dpkg:错误:无法新建文件 ‘/var/lib/dpkg/info/format-new’: 没
- spacedesk-笔记本、平板、扩展屏幕-解决平板字体太小的问题
- 宁夏等保测评机构有哪些?如何选择?
- 升级适配AGP 7.0
- Several common registries and their differences
猜你喜欢

*2-3 Upgraded version of OJ 1164 missile interceptor

实践数据湖iceberg 第三十八课 spark sql, Procedures语法进行数据治理(小文件合并,清理快照)

三子棋的代码实现

IK学习笔记(2)——TwoBones IK

30分钟使用百度EasyDL实现健康码/行程码智能识别

项目小操作:form表单的校验,以及第二次显示提示校验内容等问题

【软考】2022年上半年软考过啦

从软件哲学角度谈 Amazon SageMaker(第一讲)

【Database】Sqlserver如何定时备份数据库和定时清除

The rising star DPU is revolutionizing the data center!
随机推荐
SMI 与 Gateway API 的 GAMMA 倡议意味着什么?
探索进军元宇宙的代表性企业
golang中的select原理解析
dpkg:错误:无法新建文件 ‘/var/lib/dpkg/info/format-new’: 没
ArcGIS在国土空间·城乡规划中的实战应用
Assembly language learning (5)
【Serilog】具有完全结构化事件的简单.NET日志记录
Assembly language learning (8)
数据建模已死,真的吗?
Shell course summary
spacedesk-笔记本、平板、扩展屏幕-解决平板字体太小的问题
apt-get install 和pip install 的区别
*1-5 OJ 642 Russian Multiplication
Assembly language learning (4)
概率论基础知识整理 | 随机向量
RHCE Course Summary
Simulate the realization of strcpy function (including multiple optimization ideas)
uniapp学习
#25-1 OJ 78 Calculate birthday day of the week
概率论基础知识整理 | 随机变量