有关最小值的问题! select * from 表 where rq=(select min(rq) group by id) 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 写错更正:select * from 表 where rq=(select min(rq) from 表 a where a.id=表.id) select min(rq) from 表 group by id select id,min(rq) from 表 group by id两个字段都显示 select * from 表 where rq=(select min(rq) from 表 表别名 where 表别名.id=表.id) 射你的表名为Aselect * from A where rq=(select min(rq) from A s where s.id=A.id) 1.select id, min(rq) from yourtable group by id2.select * from yourtable as A where rq = (select min(rq) from yourtable where id = A.id) select id, min(rq) from yourtable group by id 关于区分大小写的问题 字段中特定字符读取的问题????? 如何select 指定位置的记录 sql server索引问题求助 复制中的IP连接问题 请教大家一个SQL语句的问题 关键服务器上的sql日志问题 人命关天,数据库高手请进!!! 值得悬赏的问题!急! 写到数据库中的汉字变成了问号,在线急等 为什么不能显示中文呢?请高手帮忙!!!!!!!!!!!! 再问一个SQL处理问题
select * from 表 where rq=(select min(rq) from 表 a where a.id=表.id)
两个字段都显示
select * from A where rq=(select min(rq) from A s where s.id=A.id)
1.
select id, min(rq) from yourtable group by id
2.
select * from yourtable as A where rq = (select min(rq) from yourtable where id = A.id)