COALESCE in ORDER BY...

From: "Terry Yapt" <pgsql(at)technovell(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: COALESCE in ORDER BY...
Date: 2003-05-17 16:40:01
Message-ID: 1053189601.81a4c98pgsql@technovell.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Why this doesn't run on postrgreSQL 7.3.1 ?

www=> SELECT 10 AS first ORDER BY first DESC;
first
-------
10
(1 row)

www=> SELECT 10 AS first ORDER BY COALESCE(first,0) DESC;
ERROR: Attribute "first" not found

Thanks in advance..

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Andreas Schmitz 2003-05-17 17:14:09 Re: COALESCE in ORDER BY...
Previous Message jmsmithe 2003-05-17 16:18:24 how to use an aggregate function