怎样对这张表进行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语句的执行时间 求一条简单SQL 在线等答案~~~~求教一个数据库备份的问题 求教,我想在一个datatable里找到name='李四'在某一行? 怎么写? 关于事务处理 日志在哪里? Sql Null值问题? 复杂的for xml语句,生成合适的XML树形菜单。弄了一天多了 求救!聚合查询 如何在SQLSERVER中使用存储过程来完成树状查询!(特急,请帮忙), 关联问题。问了俩次,望回复。谢谢!! 请问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