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

Oracle Partition By 的使用

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-07 16:33:48
Original
1844 people have browsed it

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; (; (;

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template