Me resulta mucho más fácil usar la agregación condicional:
select id,
max(case when type = 'A' then value end) as a,
max(case when type = 'B' then value end) as b,
max(case when type = 'C' then value end) as c
from t
group by id;
Puede insertar los resultados en una tabla usando create table as
. Eso también debería funcionar con una consulta dinámica.