Question : NULLS FIRST, NULLS LAST on order by

I'm want to order by date nulls first.   Default seems to be nulls last.  However, it will not accept my SQL.   Does the version make a difference?

Here's the order by clause SQL:

order by shipdate ASC NULLS FIRST

Answer : NULLS FIRST, NULLS LAST on order by

Which version of PostgreSQL are you using? My guess is 8.2 or lower, the NULLS FIRST|LAST was an addition to 8.3.

So I guess you have to upgrade!

best
Ray
Random Solutions  
 
programming4us programming4us