Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
select sum(nvl2(col001, 0, 1))
+ sum(nvl2(col002, 0, 1))
+ sum(nvl2(col003, 0, 1))
...
+ sum(nvl2(col200, 0, 1))
from your_table;
select '+ sum(nvl2(' || column_name || ',0,1))' from user_tab_columns
where table_name = 'YOUR_TABLE' and nullable = 'Y';
DECLARE
TotalNull number(5):=0;
column_count number(5);
v_null number(5);
sqlstr varchar2(300);
CURSOR col_cur IS
select column_name from user_tab_columns where
table_name=<Your Table Name>;
BEGIN
For nullrec in col_cur loop
sqlstr:='select count(*) from <Your Table Name> where
'||nullrec.column_name||' is null';
EXECUTE IMMEDIATE sqlstr into v_null;
TotalNull:=TotalNull+v_null;
end loop;
dbms_output.put_line('Number of Nulls in the Table' || TotalNull);
END;