摘要: select deptno,empno,ename,sal,last_value(sal) over(partition by deptno order by sal ROWS BETWEEN unbounded preceding AND current row ) max_sal,last_value(sal) over(partition by deptno order by sal ) max_sal2,FIRST_VALUE(sal) over(partition by deptno order by sal ROWS BETWEEN unbounded preceding AND 阅读全文
posted @ 2013-10-11 22:18 沙漠里的小鱼 阅读(2064) 评论(0) 推荐(0) 编辑