How MySQL Optimizes DISTINCT?

DISTINCT is converted to a GROUP BY on all columns and it will be combined with ORDER BY clause.

Leave a Reply

Your email address will not be published. Required fields are marked *