When we are optimizing the SQL statements to improve the performance I thought this tip would help the figure out where to tweak their code.
This is how the order in which sql directives (clauses) get executed when you write a select statement.
- FROM clause
- WHERE clause
- GROUP BY clause
- HAVING clause
- SELECT clause
- ORDER BY clause
No comments:
Post a Comment