order clauses in statement
having clause