Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: field alias for case function

Re: field alias for case function

From: Erik Ykema <Erik.SIHTEVOMER.Ykema_at_xs4all.nl>
Date: Thu, 1 May 2003 20:47:38 +0200
Message-ID: <3eb16bcd$0$49105$e4fe514c@news.xs4all.nl>


select decode (id, 1, 9, id) as id from temp_t1;

what SQL-dialect is the original statement written in?

Best regards,
Erik
"sy" <sychen_at_vidmon.com> wrote in message news:44dec6fa.0305011017.5f6efbc_at_posting.google.com...
> Hi,
>
> How do I give a field alias for the following sql statement:
>
> select case id when 1 then 9 else id end case from temp_t1;
>
> I would to give a field name for the output.
>
> Thanks
> sy
Received on Thu May 01 2003 - 13:47:38 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US