runxinzhi.com
首页
百度搜索
sql 根据 分数 获取指定名次信息
昨天去面试 考了一道题是根据学生的分数取得第三名. 由于一直用linq 从毕业到现在..sql只会普通的查询. 今天突然想到了 可以先根据分数升序查出前3条 然后在降序查询前1条 就可以实现了... select top 1 [Name] from (select top 3 * from dbo.Fenshu as c order by c.fenshu desc) as c1 order by c1.fenshu
相关阅读:
上周热点回顾(2.72.13)
【故障公告】数据库服务器 CPU 100% 引发全站故障
【故障公告】周五下午的一次突发故障
上周热点回顾(1.171.23)
【故障公告】k8s 开船记:增加控制舱(controlplane)造成的翻船
[转]Flag an issue Atlassian Support / Jira Software / Resources
[转]Create a Subtask and Link to Parent Issue in Jira
[书目]Python数据分析实战
jenkins
[转]Jira ScriptRunner 插件使用总结
原文地址:https://www.cnblogs.com/shaomingrui/p/1993538.html
最新文章
速战速决 Python python 标准库: 多线程和线程同步
速战速决 Python python 基础: 语句(if,while,for,try)
速战速决 Python python 概述: 概述
速战速决 Python python 基础: 运算符
速战速决 Python python 标准库: 目录和文件管理
速战速决 Python python 数据类型: 列表类型
速战速决 Python python 数据类型: 数据类型转换
速战速决 Python python 高级: 推导式,zip
速战速决 Python python 模块,包: 基础
速战速决 Python python 数据类型: 元组类型
热门文章
速战速决 Python python 数据类型: 字符串类型
速战速决 Python python 数据类型: 字节类型
速战速决 Python python 类: 基础
速战速决 Python python 标准库: 日期和时间
速战速决 Python python 数据类型: 数字类型
速战速决 Python python 基础: 文件写入和读取
速战速决 Python python 数据类型: 字典类型
上周热点回顾(1.312.6)
上周热点回顾(2.142.20)
上周热点回顾(1.241.30)
Copyright © 2020-2023
润新知