I want to talk about a scenario that we can use both nvl or case in the select statement. In PL-SQL using nvl will be easier that is true. But when it comes to query (in select statement)
will using nvl make it slower? I have a package that have loads of select statement with NVl. If I replace them with case will it work faster?
For example;
select case sum(nvl(birikim,0)) when null then 0 else sum(nvl(birikim,0) end
instead of using this,
select nvl(sum(nvl(birikim, 0)), 0))