怎样对这张表进行Select??100分送上! select F1,max(F2) as F2,max(F3) as F3 from tb group by F1 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 但是你Group by F1之后,显示的表就只是F1123后面的就没有了呀。 select F1,max(F2),max(F3) from 表名 group by F1 select tb.* from tb,(select F1,max(F3) F3 from tb group by F1) twhere tb.F1=t.F1 and tb.F3=t.F3 或者select * from tb t where not exists(select * from tb where F1=t.F1 and F3>t.F3) 我也来一个select L.* from tb L JOIN (select F1,max(F3) F3 from tb group by F1) R ON L.F1=R.F1 AND L.F3=R.F3 关于SQL 2005 版本的问题。 数据库中用substring函数截取时间月如何判断有这个月的所有数据 求解一个sql语句 水晶报表打印的问题 安装了sql server 7.0的 service pack 4 之后,我的sql7.0 用 sa 用户都进不去了 怎样改text类型和image类型字段的大小 为甚么呢?高手帮忙解释一下。邹老大救命啊 怎样在ms-sql 2000中添加管理员用户阿? 多条件组合查询优化(比较头痛.......) 一个SQL语句求解,二个表的统计 关联问题。问了俩次,望回复。谢谢!! 请问sql语句
1
2
3后面的就没有了呀。
where tb.F1=t.F1 and tb.F3=t.F3
select * from tb t
where not exists(select * from tb where F1=t.F1 and F3>t.F3)
tb L JOIN (select F1,max(F3) F3 from tb group by F1) R
ON L.F1=R.F1 AND L.F3=R.F3