Re: About decode function

From: Sim Zacks <sim(at)compulab(dot)co(dot)il>
To: "VivekanandaSwamy R(dot)" <VivekanandaSwamyr(at)infics(dot)com>
Cc: pgadmin-support(at)postgresql(dot)org
Subject: Re: About decode function
Date: 2006-06-27 11:06:02
Message-ID: 1261759451.20060627130602@compulab.co.il
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-support

try:
select case sex when 'M' then 'Male when 'F' then Female' end from std

Sim
________________________________________________________________________________

Hi,
I have knowledge in Oracle.Now we are using postgresql...,

In oracle...
select decode(sex,'M','Male','F','Female') from std;
It retuns Male or Female.insted of M or F.

Now i want to use this function in postgresql?is there any posibility?
please send me..,i am waitning for ur reply

Thanks & Regards

Vivekananda.R | Software Engineer

Infinite Computer Solutions | Exciting Times...Infinite Possibilities...

SEI-CMMI level 5 | ISO 9001:2000

Tel +91-80-5193-0000| Fax +91-80-51930009 | Cell No
+91-9986463365|www.infics.com

Information transmitted by this e-mail is proprietary to Infinite Computer Solutions and / or its Customers and is intended for use only by the individual or the entity to which it is addressed, and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If you are not the intended recipient or it appears that this mail has been forwarded to you without proper authority, you are notified that any use or dissemination of this information in any manner is strictly prohibited. In such cases, please notify us immediately at info(dot)in(at)infics(dot)com and delete this email from your records.

In response to

Browse pgadmin-support by date

  From Date Subject
Next Message Jim C. Nasby 2006-06-28 04:42:32 Re: Postgis Manual
Previous Message VivekanandaSwamy R. 2006-06-27 09:50:47 About decode function