如果我想使用sql语句查询获得分数最高的姓名是谁应该怎么写? 假设我的表结构如下name scoreXXX XXXXX XX如果我想使用sql语句查询获得分数最高的姓名是谁应该怎么写?select max(score),name from table 的语句,之后提示出错 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select score,name from tablewhere score =(select max(score) from table) select top 1 * from tablename order by score descselect * from tablename where score=(select max(score) from tablename)换个思路嘛 select * from table where score=max(score) select * from tablename where score=(select max(score) from tablename)这比好,有2个第一的都可以抓出来! 请谈谈char(1)与varchar(1)的区别(重开贴) tsql 为什么不能不能将表变量直接进行付值,复制引用 关于SQL sever2000安装一定要IE 5.0么? 存储过程如何编写??? 如何将SQLSERVER2000中的表结构及数据转到ACCESS数据库中????特急~~~~~谢谢~~~~ sqlserver2005和 sqlce3.0的合并复制问题 sql语句 求分隔字符串转临时表 升级了,放分庆祝. 关于临时表 求助三层结构数据库应用程序设计 case when 简单问题 求一句sql语句?
where score =(select max(score) from table)
换个思路嘛
这比好,有2个第一的都可以抓出来!