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

Home -> Community -> Usenet -> c.d.o.misc -> Re: Question about views

Re: Question about views

From: Jochen Duemmel <jduemmel_at_goliath.franken.de>
Date: 1998/06/23
Message-ID: <358FFB0F.DC77A50B@goliath.franken.de>#1/1

Hi,

this works, but it's not a fine way:

create view xyz (name,age) as
select 'Y','Y' from table where name is not null and length(name) > 0 and age is not null and age !=0
union
select 'N','N' from table where (name is null or length(name) = 0) and (age is null or age=0)
union
select 'Y','N' from table where name is not null and length(name) > 0 and (age is null or age=0)
union
select 'N','Y' from table where (name is null or length(name)=0) and age is not null and age !=0;

Maybe I find a better way tonight ....
Greetings
Josh

Raymond Du wrote:

> I have a table
>
> Thanks
>
> Raymond Du
> IDM Corp.
Received on Tue Jun 23 1998 - 00:00:00 CDT

Original text of this message

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