From: Ferruccio Zamuner <nonsolosoft@diff.org>
To: pgsql-sql@postgresql.org
Subject: Unable to identify an ordering operator
Date: Sun, 31 Dec 2000 15:55:12 +0100 (CET)
Message-ID: <200012311455.eBVEtCt11654@tnt.diff.org> (raw)
Hello,
select persons.name,firm.name,persons.tel
from persons,work,firm
where (persons.table_owner=0) and
(work.id_firm=firm.id and work.id_person=persons.id)
union
select persons.name,firm.name,persons.tel
from persons,work,firm
where (persons.table_owner=1) and
(work.id_firm=firm.id and work.id_person=persons.id);
ERROR: Unable to identify an ordering operator '<' for type '_text'
Use an explicit ordering operator or modify the query
I know that this query can be rewrite to eliminate the UNION using an
OR operator on first condition but my question is:
How can I specify an ordering operator? On which field have I to put it?
Best wishes for the new YEAR, \fer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: nonsolosoft@diff.org
Subject: Re: Unable to identify an ordering operator
In-Reply-To: <200012311455.eBVEtCt11654@tnt.diff.org>
References: <200012311455.eBVEtCt11654@tnt.diff.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox