问个重复数据的SQL语句,就10分了.. 字段A 字段B 字段C 1 1 2 2 1 2 3 2 2 4 3 2我想去掉字段B的重复数据,然后返回这三个字段的结果要怎么写啊结果大概是这样2 1 23 2 24 3 2 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 你给的数据是按b、c去的重select max(a),b,c from table group by b,c select max(a),b,MAX(c) from table group by b给的数据没问题啊? select a,b,cfrom(select a,b,c,row_number() over(patition b order by a desc) rec_nofrom table) where rec_no=1; delete from temp twhere rowid in ( select max(d.rowid) from temp d group by d.number2) 2 1 2 3 2 2 4 3 3 oracle 11g r2 登陆em 报 证书错误 问个oracle小问题 请帮忙看看这句SQL, 实现分页查询, 但目前发现排序有问题,请大家帮忙.谢谢 怎么让oracle或者SqlServer中的外键约束暂时失效?? oracle 10g tns 问题 高手请进 怎样删除lob类型的索引! rman full.. 求一个sql,大虾帮个忙。 幫幫忙啊--關於數據庫啟動的問題 存储过程里怎么建临时表 以前是学习ms sql server ,现在想学习oracle 请高手们给些建议或是推荐几本书 一个关于系统sequence资源浪费的问题
select max(a),b,c from table group by b,c
给的数据没问题啊?
from(select a,b,c,row_number() over(patition b order by a desc) rec_no
from table) where rec_no=1;
where rowid in (
select max(d.rowid) from temp d
group by d.number2)
2 1 2
3 2 2
4 3 3