Oracle领导职能
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Oracle领导职能相关的知识,希望对你有一定的参考价值。
A few examples of the LEAD function.
SELECT * FROM student; --Example 1 SELECT student_id, first_name, last_name, enrolment_date, LEAD(enrolment_date) OVER (ORDER BY enrolment_date ASC) AS next_enr_date FROM student ORDER BY student_id ASC; --Example 2 SELECT student_id, first_name, last_name, enrolment_date, LEAD(enrolment_date) OVER (ORDER BY enrolment_date ASC) AS next_enr_date FROM student ORDER BY enrolment_date ASC; --Example 3 SELECT student_id, first_name, last_name, enrolment_date, LEAD(enrolment_date, 2, '31-DEC-2999') OVER (ORDER BY enrolment_date ASC) AS next_enr_date FROM student ORDER BY enrolment_date ASC; --Example 3 SELECT student_id, first_name, last_name, enrolment_date, LEAD(enrolment_date) OVER (ORDER BY enrolment_date ASC) AS next_enr_date FROM student WHERE LEAD(enrolment_date) OVER (ORDER BY enrolment_date ASC) > '01-FEB-2015' ORDER BY enrolment_date ASC;
以上是关于Oracle领导职能的主要内容,如果未能解决你的问题,请参考以下文章