Home >Database >Mysql Tutorial >Oracle Partition By 的使用

Oracle Partition By 的使用

WBOY
WBOYOriginal
2016-06-07 16:33:481834browse

Parttion by 关键字是Oracle中分析性函数的一部分,它和聚合函数不同的地方在于它能够返回一个分组中的多条记录,儿聚合函数一般

row_number() over(partition by deptid order by salary) my_rank ,deptid,USERID,salary from tsaler; rank() over(partition by deptid order by salary) my_rank,deptid,USERID,salary from tsaler; dense_rank() over(partition by deptid order by salary) my_rank,deptid,USERID,salary from tsaler; (; (;

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:Oracle 11g闪回flashbackNext article:REDIS中批量删除KEY