I\'m trying to understand what this query does exactly:
SELECT DISTINCT `state`, `state_name` FROM `geo` ORDER BY `state_name` ASC
All I\'m
It's checking for unique combinations of state and state_name. Distinct operates on all columns included in your select list.
To only include unique state values, just select distinct state