Which is more efficient?
SELECT theField FROM theTable GROUP BY theField
or
SELECT DISTINCT theField FROM theTable
In MySQL, DISTINCT seems a bit faster than GROUP BY if theField is not indexed. DISTINCT only eliminate duplicate rows but GROUP BY seems to sort them in addition.