devroom.io/content/posts/2008-11-14-sql-ordering-with-null-values.md
2019-06-05 14:32:16 +02:00

554 B

+++ date = "2008-11-14" title = "SQL: Ordering with NULL values" tags = ["General", "order", "database", "sql"] slug = "sql-ordering-with-null-values" +++

First seen at Kabisa Blog: SQL: Ordering with NULL values

This post tells you how to sort NULL values in a column to the bottom and sort the remaining non-NULL values.

This is really great in combination with LEFT JOIN queries that may yield NULL values.