select TA.a,TA.b1,TA.c1,TB.b2,TB.c2, from
(select a,b as b1,c as c1 from table ) TA,
(select a,b as b2,c as c2 from table) TB
where TA.a = Tb.a(+)
(select a,b as b1,c as c1 from table ) TA,
(select a,b as b2,c as c2 from table) TB
where TA.a = Tb.a(+)
(select a,b as b1,c as c1 from table ) TA,
(select a,b as b2,c as c2 from table) TB
where TA.a = Tb.a(+)
union all
select TA.a,TA.b1,TA.c1,TB.b2,TB.c2, from
(select a,b as b1,c as c1 from table ) TA,
(select a,b as b2,c as c2 from table) TB
where TA.a(+) = Tb.a