decode


Database

SELECT
    decode(job,'P','Programmer','SE')
FROM
    sample;

job列の値がPならProgrammer、違うならSEを出力する

関連記事