Breaking News
Loading...
07/12/2013

The order in which the query clauses are logically processed

In most programming languages, the lines of code are processes in the order that they are written. In SQL, things are different. Even though the SELECT clause appears first in the query, it is logically processed almost last. The clauses are logically processed
in the following order:

1. FROM
2. WHERE
3. GROUP BY
4. HAVING
5. SELECT
6. ORDER BY

0 comments:

Post a Comment

 
Toggle Footer