HQL笔试题总结(持续更新中)日期:202111162021111720211118
1、获取第二高的薪水表(emp) & 列 (empno,salary)select nvl(salary,null) from( select e.salary desc_rank()over(order by e.salary desc) as rank from emp e)t1where t1.rank = 22、分数排名(名词之间不能有间隔)表(scores) & 列 (id,score)select score,desc_rank(over