Posted By: patch Suppression of NULL records? - 12/16/19 11:30 AM
Is there a setting I am missing that suppresses records with just NULL values?
Check this script:
prompt This shows 3 records
with data as (select null c1, null c2 from dual union all
select 1 , null from dual union all
select null , 2 from dual union all
select 1 , 2 from dual
)
select *
from data
/
prompt This shows 4 records
with data as (select null c1, null c2 from dual union all
select 1 , null from dual union all
select null , 2 from dual union all
select 1 , 2 from dual
)
select nvl(c1, -1) c1
, nvl(c2, -1) c2
from data
/

Or have I stumbled upon a bug?!?
Posted By: lost Re: Suppression of NULL records? - 12/16/19 02:36 PM
Both variants show me 4 records.
13.0.6.1911
Oracle 12.2.0.1.0
Posted By: lost Re: Suppression of NULL records? - 12/16/19 02:38 PM
Oops! I have mistaken. You're right: in Command window - 3 records for the 1st query.
Posted By: T-Gergely Re: Suppression of NULL records? - 12/17/19 04:45 PM
Yep, it seems to be a bug.
Posted By: Worker Re: Suppression of NULL records? - 12/17/19 07:01 PM
It looks like NULL rows aren't displayed in the command window. Both of the following give the same result:
Code
select null from dual where 1=1;
select null from dual where 1=2;
Posted By: Marco Kalter Re: Suppression of NULL records? - 12/18/19 10:16 AM
This does indeed not seem quite right. We'll fix it.
© Allround Automations forums