根据以下描述我必须CASE...END在SQL服务器中构建一个语句,帮助我构造一个复杂的CASE...END语句来满足以下条件.
if PAT_ENT.SCR_DT is not null and PAT_ENTRY.ELIGIBILITY is null then display display 'Favor'
if PAT_ENT.SCR_DT is not null and PAT_ENTRY.EL is equal to No, display 'Error'
if PAT_ENTRY.EL is Yes and DS.DES is equal to null or OFF, display 'Active'
if DS.DES is equal to N, display 'Early Term'
if DS.DES is equal to Y, display 'Complete'
Run Code Online (Sandbox Code Playgroud)
提前致谢.