A bit of a strange one, I want to write a MySQL query that will get results from a table, but prefer one value of a column over another, ie
id name value
Maybe something like:
SELECT id, name, value, priority FROM table_name GROUP BY name ORDER BY priority
Although not having a database in front of me I can't test it...