日期:2014-05-17 浏览次数:21042 次
with A_CODE as
(select 'JACK' namea, '2' a, '1' b from dual
union all
select 'JACK' namea, '3' a, '2' b from dual
union all
select 'JACK' namea, '1' a, '3' b from dual
union all
select 'TOM' namea, '1' a, '1' b from dual
union all
select 'TOM' namea, '2' a, '2' b from dual
union all
select 'TOM' namea, '4' a, '3' b from dual
union all
select 'SAM' namea, '2' a, '1' b from dual
union all
select 'SAM' namea, '2' a, '2' b from dual)
with A_CODE as
(select 'JACK' namea, '2' a, '1' b
from dual
union all
select 'JACK' namea, '3' a, '2' b
from dual
union all
select 'JACK' namea, '1' a, '3' b
from dual
union all
select 'TOM' namea, '1' a, '1' b
from dual
union all
select 'TOM' namea, '2' a, '2' b
from dual
union all
select 'TOM' namea, '4' a, '3' b
from dual
union all
select 'SAM' namea, '2' a, '1' b
from dual