select form_no,cource,hbddept,empno,hbdcnm,substring(empno,1,4) as eDate,
case ctype when '1' then '内训' when '0' then '外训' end
from old,etsshbd
where old.empno=etsshbd.hbdwno
【Vegas原创】SQL case when 用法
阅读 227
2022-09-08
select form_no,cource,hbddept,empno,hbdcnm,substring(empno,1,4) as eDate,
case ctype when '1' then '内训' when '0' then '外训' end
from old,etsshbd
where old.empno=etsshbd.hbdwno
相关推荐
精彩评论(0)