nvl(p.TYPE,d.TYPE) TYPE ,如何用distinct去重
select distinct a.type [type] from
(SELECT nvl(p.TYPE,d.TYPE) TYPE from table )a