title: What's the execute order of the different parts of a SQL select statement?
body: <p>What's the execute order of the different parts of a SQL select statement? Such as
  <br>
  distinct<br>
  from<br>
  order by<br>
  group by<br>
  having<br>
  multiline function(count, avg, max, min...)<br>
  top(sql server) or limit(mysql)<br>
  other parts<br>
  <br>
  Does the different databases have the same execution order?
  Great thanks.</p>