Error with DISTINCT and AS keywords - Mailing list pgsql-sql

From Andreas Schlegel
Subject Error with DISTINCT and AS keywords
Date
Msg-id 3D2C2140.7060003@software.b.uunet.de
Whole thread Raw
Responses Re: Error with DISTINCT and AS keywords
List pgsql-sql
Hi,

I need some help to let this sql statement run with Postgres 7.2.1

Doesn't work:
select DISTINCT tnr, titel, 'TEST' AS testcol from tTitel;
ERROR:  Unable to identify an ordering operator '<' for type 'unknown'        Use an explicit ordering operator or
modifythe query
 

If I remove the DISTINCT keyword it works:
select tnr, titel, 'TEST' AS testcol from tTitel;



Greetings,
Andreas




pgsql-sql by date:

Previous
From: Christoph Haller
Date:
Subject: Re: Variables in PSQL
Next
From: Petr Jezek
Date:
Subject: Re: Bad SUM result