ITPub博客

首页 > 数据库 > Oracle > oracle Functions using

oracle Functions using

原创 Oracle 作者:paodekuai 时间:2006-05-31 19:02:36 0 删除 编辑

1. rank()over(order by colName)

A sample case:

select colA, colB from
(select colA, rank()over(order by colA) ra from
A) aa,(select colB, rank()over(order by colB) rb from A) bb
where aa.ra=bb.rb(+)

[@more@]

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/98828/viewspace-838981/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2011-05-23

  • 博文量
    74
  • 访问量
    2654674