Please give the order of execution of the sql query operators or give a link where to read about it: what is being done. For example (from the ceiling):
SELECT t1.id AS id, t1.name AS name, count(*) AS cnt FROM tbl_name1 t1 INNER JOIN tbl_name2 t2 ON t1.id = t2.id WHERE t1.id > 10 GROUP BY t1.name HAVING cnt > 10 ORDER BY t1.id
First GROUP BY
, then? The latest ORDER BY
... Nowhere can I find normal information about this: ((