8.8、确定一年内的天数:select add_months(trunc(sysdate,'y'),12)-trunc(sysdate,'y') from dual;
8.9、查询EMP员工表下每个部门工资前二名的员工信息:select deptno, ename, sal from emp e1 where (select count(1) from emp e2 where e2.deptno=e1.deptno and e2.ename!=e1.ename and e2.sal>e1.sal)