MySQL Series: Return NULL Values First With Descending Order

Sometimes there are unique situations where you need to order query results by a particular field in descending order, but also need NULL values first. The default (and logical) behavior of MySQL in this case is to return NULL values last, because in descending order they have the lowest value (none). But what if you [...]

All content copyright © 2010 Vance Lucas | Powered by WordPress | Entries (RSS) | Comments (RSS)