急!!!!求一SQL语句!!! select 名称,分数,年度 from table where 名称+年度 in (select 名称+max(年度) from table group by 名称) 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 呵呵,用小干部儿的方法select * from yourtable a where 年度 = (select max(年度) from yourtable b where a.名称 = b.名称) select A.名称,B.分数,B.年度 from (select 名称, max(年度) 年度 from tablename group by 名称) as A left join tablename as B on A.名称 = B.名称 and A.年度 = B.年度 如果后台密码是对的,但是显示密码错误和SQL有关系么? 在线等回答 新手... 如何在SQL Server 2005中查询指定数据表的访问用户或角色及其有效权限? 关于索引视图里关联的表的数据修改 超时已过期错误 有在PHP里用sqlsrv_query的吗?返回的记录集数量大于1条就获取不到OUTPUT参数值 怎样清除日志文件? 还是触发器 十万火急,如果在没有装sql server的服务器上需要用asp用到另一个服务器上的sql server数据库,怎么办呀。 临时表的问题 这样的sql语句怎么错了!怎样写?谢谢大家帮忙了! 查询分析器里的怪现象 sql7.0的一个故障问题
select * from yourtable a where 年度 = (select max(年度) from yourtable b where a.名称 = b.名称)
(select 名称, max(年度) 年度 from tablename group by 名称) as A
left join tablename as B
on A.名称 = B.名称
and A.年度 = B.年度