From: Khangelani Gama <kgama@argility.com>
To: pgsql-admin@postgresql.org
Subject: PostgreSQL 9.2.4 - please assist with the query
Date: Fri, 23 Jan 2015 10:19:22 +0200
Message-ID: <bfe9bdaf074cb81f2745e9017699d30f@mail.gmail.com> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>
Hi
I need help, I need to change every result with x being 71008 to be 71007
in the select query below.
SELECT x, sum( value ) as value from table where ……..
Results will show as follows but if the query finds x as 71008 then it must
make it 71007 instead. Is this possible?
71015 | 101240.00
71008 | -19351.34
CONFIDENTIALITY NOTICE
The contents of and attachments to this e-mail are intended for the addressee only, and may contain the confidential
information of Argility (Proprietary) Limited and/or its subsidiaries. Any review, use or dissemination thereof by anyone
other than the intended addressee is prohibited.If you are not the intended addressee please notify the writer immediately
and destroy the e-mail. Argility (Proprietary) Limited and its subsidiaries distance themselves from and accept no liability
for unauthorised use of their e-mail facilities or e-mails sent other than strictly for business purposes.
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 using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: kgama@argility.com
Subject: Re: PostgreSQL 9.2.4 - please assist with the query
In-Reply-To: <bfe9bdaf074cb81f2745e9017699d30f@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