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: Can I select(*) from T only fields that are not null?

Re: Can I select(*) from T only fields that are not null?

From: Maxim Demenko <mdemenko_at_gmail.com>
Date: Wed, 08 Jun 2005 21:23:40 +0200
Message-ID: <d87gjr$aov$04$1@news.t-online.com>


deanbrown3d schrieb:
> Can I get a select(*) statement to give back only the fields that have
> data?
>
>
> (I'm running this is SQL plus worksheet, on server 9, client 10)
>
> Thanks,
>
> Dean
>

Yes,
select nullable_field_1,nullable_field_2 from table_containing_nulls
where nullable_field_1 is not null and nullable_field_2 is not null;

Best regards

Maxim Received on Wed Jun 08 2005 - 14:23:40 CDT

Original text of this message

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