我有一个查询,当没有匹配的项目 ID 时,我似乎无法让它显示“无项目”:
(select (case when prj.Proj_ID is null or prj.Proj_ID = ''
then 'No Project'
ELSE prj.Proj_ID + ', ' + prj.[DESC]
END)
from prj
where prj.Proj_ID = other.Proj_ID) as 'Project Description'
任何想法?