Немного агрегирование :
SQL> with test (name, type1, type2) as
2 (select 'abc', 'YES', null from dual union all
3 select 'abc', null , 'Yes' from dual
4 )
5 select name, max(type1) type1, max(type2) type2
6 from test
7 group by name;
NAM TYP TYP
--- --- ---
abc YES Yes
SQL>