SQLServer2005中查询语句的执行顺序

SQLServer2005中查询语句的执行顺序
 

--1.from
--2.on
--3.outer(join)
--4.where
--5.group by
--6.cube|rollup
--7.having
--8.select
--9.distinct
--10.order by       所以在select定义的字段别名 在where语句是不能用的
--11.top

原文地址:https://www.cnblogs.com/mushishi/p/3360576.html