日期:2014-05-17 浏览次数:20965 次
with ax as(
select PARENT col1 from PARENT_CHILD union
select CHILD col1 from PARENT_CHILD
)
select max(decode(col1,'A','A')) first,
max(decode(col1,'B','B')) second,
max(decode(col1,'C','C')) third,
max(decode(col1,'D','D')) fourth,
max(decode(col1,'E','E')) fifth
from ax