Can anyone explain why this is not producing the desired results?
select a.*, b.Feb22
from (
select
'Wtd Avg FICO' as Metric
,750.5 as Jan22
from dual
union all
select
'Wtd Avg DTI' as Metric
,0.35 as Jan22
from dual
union all
select
'Wtd Avg LTV' as Metric
,0.75 as Jan22
from dual
) a
inner join
select *
from (
select
'Wtd Avg FICO' as Metric
,700.5 as Feb22
from dual
union all
select
'Wtd Avg DTI' as Metric
,0.50 as Feb22
from dual
union all
select
'Wtd Avg LTV' as Metric
,0.25 as Feb22
from dual
) b on a.Metric = b.Metric
Desired Results:
Metric | Jan22 | Feb22 |
---|---|---|
Wtd Avg FICO | 750.5 | 700.5 |
Wtd Avg DTI | 0.35 | 0.75 |
Wtd Avg LTV | 0.75 | 0.50 |