select col_name1, count(1)
from tab_name
where col2 = nvl('', col2)
group by col1;
This returns rows in my local DB. But in another server it returns no rows.
But if I replace nvl('', col2)
with nvl(null, col2)
it returns the rows.
select col_name1, count(1)
from tab_name
where col2 = nvl('', col2)
group by col1;
This returns rows in my local DB. But in another server it returns no rows.
But if I replace nvl('', col2)
with nvl(null, col2)
it returns the rows.