For ex: I have a record with name
= "sga_target", and no record exists where name
= "_exafusion_enabled". I still want to display a row with "_exafusion_enabled" as name
and NULL as value
, without using an outer join with any other table.
select name,value from v$spparameter where name
in('_exafusion_enabled','sga_target');
Desired output :
name value
-------------------- -----
sga_target 18G
_exafusion_enabled null
(actually name
column does not have the value "_exafusion_enabled")
How can we do this?
MODEL
clause let's you add rows to a resulting data set. So, yes, it is possible, but (imho) not maintainable. – Michael Kutz Sep 26 '18 at 16:45name
doesn't exist, and the row with the actual value if it does? – RDFozz Sep 26 '18 at 18:07