order of using clauses in sql