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: Help on Query!

Re: Help on Query!

From: ravs <ravisankar.garigipati_at_gmail.com>
Date: 26 Oct 2005 07:52:03 -0700
Message-ID: <1130338323.365445.250650@z14g2000cwz.googlegroups.com>


try this
select colA,colB,
  decode(UPPER(Colc),'IN','Input Parameter','OUT','Output Parameter') ColC
from A;
DA Morgan wrote:
> Scott wrote:
> > I have a table A, that has columns,
> >
> > ColA
> > ColB
> > ColC
> >
> > The value is ColC is stored as 'IN' and 'OUT'.
> >
> > How do I write a query that selects 'IN' or 'OUT' and if it is 'IN', it
> > should
> > get displayed as 'Input Parameter' and if 'OUT' it should get displayed
> > as
> > 'Output Parameter'.
> >
> > Thanks in advance.
>
> You ask your instructor for extra help after class.
>
> For all other c.d.o.s. denizens ... I gave my students their midterm
> tonight. It is ... of course ... purely a coincidence ... that these
> requests for queries against tables named emp and A all showed up now.
>
> Please do not give away the answers. Thanks.
> --
> Daniel A. Morgan
> http://www.psoug.org
> damorgan_at_x.washington.edu
> (replace x with u to respond)
Received on Wed Oct 26 2005 - 09:52:03 CDT

Original text of this message

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