How can the lookup order of 'where exists' be changed
example
SELECT name, dialcode
FROM np_prefixes
WHERE EXISTS ( SELECT d.name
FROM np_prefixes d
GROUP BY d.name )
GROUP BY name
)
I require to get the first record it comes across in the reverse order it is currently getting as a example the result returned is 21379 (high to low) but I require 21377(low to high)