X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id D14A05612C for ; Mon, 14 Mar 2005 10:01:15 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 51273-06 for ; Mon, 14 Mar 2005 10:01:08 +0000 (GMT) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.202]) by svr1.postgresql.org (Postfix) with ESMTP id 3720E55056 for ; Mon, 14 Mar 2005 10:01:07 +0000 (GMT) Received: by rproxy.gmail.com with SMTP id j1so1840028rnf for ; Mon, 14 Mar 2005 02:00:36 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding; b=HRNAVD+Qp8MBfieFypq5XcPkOh7ZOQmKEoDhskNTUcJI/9zo6UrPN1/7BNY8p0jBtZmn5OqSQhy/OoVhE0WT5p8QQTF0rBqEwC1B9yJA8auPW7ai9BOal+GFg+silaYLAk0uQqKc6hEbbEEhR7scYT4pvEdY/aFvACMtZJqmVSU= Received: by 10.38.78.51 with SMTP id a51mr3326002rnb; Mon, 14 Mar 2005 02:00:17 -0800 (PST) Received: by 10.38.97.43 with HTTP; Mon, 14 Mar 2005 02:00:17 -0800 (PST) Message-ID: <674d1f8a050314020068b6c0c8@mail.gmail.com> Date: Mon, 14 Mar 2005 15:30:17 +0530 From: Gourish Singbal Reply-To: Gourish Singbal To: PgSQL Admin Subject: ERROR: for SELECT DISTINCT, ORDER BY expressions must appear in select list Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.252 tagged_above=0 required=5 tests=AWL, DNS_FROM_RFC_ABUSE, RCVD_BY_IP X-Spam-Level: X-Archive-Number: 200503/206 X-Sequence-Number: 16704 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