PostgreSQL 9.2.4 - please assist with the query

From: Khangelani Gama <kgama(at)argility(dot)com>
To: pgsql-admin(at)postgresql(dot)org
Subject: PostgreSQL 9.2.4 - please assist with the query
Date: 2015-01-23 08:19:22
Message-ID: bfe9bdaf074cb81f2745e9017699d30f@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-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.

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Khangelani Gama 2015-01-23 08:45:08 Re: PostgreSQL 9.2.4 - please assist with the query
Previous Message Cassiano, Marco 2015-01-22 16:09:39 Postgresql Foreign Data Wrapper & Query plan