一个sql 查询题(高手来!!!) (表)tempa b (列)1 21 31 42 12 23 14 15 35 2查询结果a b1 22 13 14 15 2求解!!! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select a,min(b) b from tb group by a select a,min(b) as b from temp group by a select a,min(b) b from tb group by a--按照字段a分组求每组字段b的最小值 select a,min(b) from temp group by a--或select * from temp tawhere not exists (select 1 from temp tb where ta.a=tb.a and ta.b>tb.b) 原业务系统是基于32位Win2000 的 SQLserver2000 ,现在需要移植到64位的 WIN 2003 Server! 修改基本表中的modify的用法问题 SQL求助:在线等 sqlserver2000 上有个表格,用select语句获取不到数据 求SQL语句,如何查找重复的记录 新安装的sqlsever2012 无法附加数据库是怎么回事??求解 数据库中表之间的关系 SQL查詢問題 临时表问题!在线等待!!! 用Delphi开发数据库的讨论. SQL数据库多表连接问题,求助! 查询前2条数据除了用top和 rownumber还有什么方法呢?急
--按照字段a分组求每组字段b的最小值
--或
select * from temp ta
where not exists (select 1 from temp tb where ta.a=tb.a and ta.b>tb.b)