From: Gourish Singbal <gourish@gmail.com>
To: PgSQL Admin <pgsql-admin@postgresql.org>
Subject: ERROR: for SELECT DISTINCT, ORDER BY expressions must appear in select list
Date: Mon, 14 Mar 2005 15:30:17 +0530
Message-ID: <674d1f8a050314020068b6c0c8@mail.gmail.com> (raw)
The Query needs to have the distinct clause in the select statement
and the UPPER clause in the order by clause.
eg.
select distinct id, type from user_list order by UPPER(type)
Please let me know if there is any solution to this issue
thanks in advance.
--
Best,
Gourish Singbal
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-admin@postgresql.org
Cc: gourish@gmail.com
Subject: Re: ERROR: for SELECT DISTINCT, ORDER BY expressions must appear in select list
In-Reply-To: <674d1f8a050314020068b6c0c8@mail.gmail.com>
References: <674d1f8a050314020068b6c0c8@mail.gmail.com>
* 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