TinyJava.Net
Monday, May 11, 2009
Rank()使用
找出column1对应多个column_2的查询:
---------------------------------------------
select * from (select rank() over(partition by
order by
desc) rk, table_name.*
from table_name) T
where T.rk>=2;
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Followers
TinyJava.NET Blog Archive
►
2011
(1)
►
December
(1)
▼
2009
(38)
►
October
(1)
▼
May
(4)
Oracle中的异常处理
PL/SQL debug – 1
select into
Rank()使用
►
April
(12)
►
March
(11)
►
February
(5)
►
January
(5)
►
2008
(7)
►
December
(7)
About Me
Unknown
View my complete profile
No comments:
Post a Comment