Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

To take count of not null columns

944524Jan 25 2016 — edited Jan 25 2016

Hi,

I am having a table T1 where in need to check all the columns whether they are having null values

T1

id number

dat_col date

amt number

I need to  each columns if there are any null values

select * from T1

where (id is null or dat_col is null or amt is null);

Is there efficient way to check which column is having null along with data, because there is no indexes in any of the columns and there are around 150 billion records in T1

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 22 2016
Added on Jan 25 2016
24 comments
4,222 views