Home > Database > Mysql Tutorial > Oracle子查询第一行与最后一行相运算

Oracle子查询第一行与最后一行相运算

WBOY
Release: 2016-06-07 17:14:38
Original
1289 people have browsed it

引言: 处理流水帐类似记录的时候,可能常遇到“在某个表值上,取首尾记录进行运算”的情况。比如:打卡记录,期末对期初增幅等。

引言:

处理流水帐类似记录的时候,可能常遇到“在某个表值上,取首尾记录进行运算”的情况。比如:打卡记录,,期末对期初增幅等。因此,笔者向大伙推荐一个Oracle的keep语法。

特别地感谢一下oracle群的驴兄和温州·名次兄的指点。

正文:

直接上样例:

linux

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