|From:||"Phillip Smith" <phillip(dot)smith(at)weatherbeeta(dot)com(dot)au>|
|To:||"'Ezequias Rodrigues da Rocha'" <ezequias(dot)rocha(at)gmail(dot)com>, <pgsql-sql(at)postgresql(dot)org>|
|Subject:||Re: Retrieving 'Credit' when 'C'|
|Views:||Raw Message | Whole Thread | Download mbox | Resend email|
CASE WHEN type = 'C' THEN 'Credit' END AS type
Assuming your column names are actually "when" and "type" you should just
have to change "mytable" to the correct table name and run in psql or the
SQL Window of pgAdmin or wherever you usually run your SQL queries to get
what you want.
From: pgsql-sql-owner(at)postgresql(dot)org [mailto:pgsql-sql-owner(at)postgresql(dot)org]
On Behalf Of Ezequias Rodrigues da Rocha
Sent: Friday, 16 February 2007 03:45
To: Ezequias Rodrigues da Rocha; pgsql-sql(at)postgresql(dot)org
Subject: Re: [SQL] Retrieving 'Credit' when 'C'
Just a question, where to put it ? I didn't notice yet.
*******************Confidentiality and Privilege Notice*******************
The material contained in this message is privileged and confidential to
the addressee. If you are not the addressee indicated in this message or
responsible for delivery of the message to such person, you may not copy
or deliver this message to anyone, and you should destroy it and kindly
notify the sender by reply email.
Information in this message that does not relate to the official business
of Weatherbeeta must be treated as neither given nor endorsed by Weatherbeeta.
Weatherbeeta, its employees, contractors or associates shall not be liable
for direct, indirect or consequential loss arising from transmission of this
message or any attachments
|Next Message||Walter Cruz||2007-02-15 22:59:58||Re: "for SELECT DISTINCT, ORDER BY expressions must appear in select list" - is that the standart or a limitation of postgresql?|
|Previous Message||Tom Lane||2007-02-15 17:10:17||Re: "for SELECT DISTINCT, ORDER BY expressions must appear in select list" - is that the standart or a limitation of postgresql?|