Blog Pages

Get NULLS first - Oracle

SELECT GENDER, TYPECAST, NAME FROM ACTOR
ORDER BY  TYPECAST NULLS FIRST

In Oracle, when sorting with "order by", NULL values are sorted last. By write "NULLS FIRST" - NULL will be sorted in the beginning.

No comments:

Post a Comment