Oracle中真正稳妥的求三甲的方法
坐地铁回家路上忽然想起,三甲排名可能为多个,只取三名岂不荒谬。不信请看下面数据: create table tb_score( id number ( 4 , 0 ) primary key , name nvarchar2( 20 ) not null , score integer not null ) insert into tb_score values ( ' 1 ' , ' Andy ' , ' 100 ' ); insert into tb_score values ( ' 2 ' , ' Bill ' , ' 99 ' ); insert into tb_score values ( ' 3 ' , ' Cindy ' , ' 100 ' ); insert into tb_score values ( ' 4 ' , ' Douglas ' , ' 99 ' ); insert into tb_score values ( ' 5 ' , ' Eliot ' , ' 98 ' ); insert into tb_score values ( ' 6 ' , ' Flex ' , ' 98 ' ); insert into tb_score values ( ' 7 ' , ' Hellen ' , ' 98 ' ); insert into tb_score