朗讯(青岛)笔试:SQL题请教!

lixiazhong 2003-10-16 10:33:48
5数据库(10)
a tabel called “performance”contain :name and score,please 用SQL语言表述如何选出score最high的一个(仅有一个)
...全文
23 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
dafu71 2003-10-16
  • 打赏
  • 举报
回复
select top 1 name,score from performance order by score desc
sdhdy 2003-10-16
  • 打赏
  • 举报
回复
select * from performance where score=(select max(score) from performance)
aierong 2003-10-16
  • 打赏
  • 举报
回复



看起来不难
大公司的考试更注重基础
txlicenhe 2003-10-16
  • 打赏
  • 举报
回复
Select top 1 * from performance order by score desc
伍子V5 2003-10-16
  • 打赏
  • 举报
回复
select name,max(score) from performance group by name
friendliu 2003-10-16
  • 打赏
  • 举报
回复
select top 1 score from performance order by socre desc
go

34,575

社区成员

发帖
与我相关
我的任务
社区描述
MS-SQL Server相关内容讨论专区
社区管理员
  • 基础类社区
  • 二月十六
  • 卖水果的net
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧