Column
inv_num scn
MI1001 160008
CI1002 160008
VI1003 160008
scn Misc Cargo Vessel
160008 MI1001 CI1002 VI1003
I would do this with conditional aggregation:
select scn,
max(case when inv_num like 'MI%' then inv_num end) as Misc,
max(case when inv_num like 'CI%' then inv_num end) as Cargo,
max(case when inv_num like 'VI%' then inv_num end) as Vessel
from t
group by scn;