What happens when ORDER BY and GROUP BY use different columns — how does MySQL handle sorting and aggregation? | Clauses | mysql Interview Questions | NextRound.in