select 职工号 , 
max(case 岗位类别 when '岗位津贴' then 金额 end) 岗位津贴 ,
max( case 岗位类别 when '职位津贴' then 金额 end) 职位津贴
from
(
select 职工号,t1.津贴类别, 金额  from t1, t2 where t1.编号=t2.编号
) t
group by 职工号