It is problematic for the developer to not have control over sorting of nulls.
In different DBs, the sorting of nulls relative to other values is handled differently.
PostgreSQL - Nulls are considered HIGHER than non-nulls.
DB2 - Higher
MSSQL - Lower
MySQL - Lower
Oracle - Higher
"NULLS LAST" is part of the SQL 99 standard.
The syntax is as follows:
ORDER BY [COLUMN NAME] [ASC | DESC] [NULLS FIRST | NULLS LAST]
The following DBs have supported this functionality:
DB2 V7
Oracle 9i
PostgreSQL, MySQL, SQLServer do not appear to support this from what I can gather.
|