SELECT  日期, decode(类型,'支出',金额,0) as 支出, decode(类型,'存入',金额,0) as 存入
from yourtable
where 代号='001';