select (case when num>0 then 'Y' when num=0 then 'NG' else 'N' end) as column from table

相关文章: