MySQL – Order by certain value first
Ever wanted to sort a resultset of data, by value, but I wanted a couple of exceptions to appear at the top? SELECT country, population, CASE country WHEN 'United Kingdom'…
A bunch of ramblings about PHP programming, JQuery, MySQL and other 'stuff'
Ever wanted to sort a resultset of data, by value, but I wanted a couple of exceptions to appear at the top? SELECT country, population, CASE country WHEN 'United Kingdom'…