select ..., ROWNUM from table where <where clause> group by <columns> having <having clause> order by <columns>;
它的处理顺序是:
PS: 如果存在分析函数(row_number etc),那么,分析函数的执行会在 order by 之前。
oracle查询语句执行顺序
原文:http://www.cnblogs.com/qq895139140/p/7483696.html