10
根據以下描述,我必須在SQL server中構建一條CASE...END
語句,幫助我構造複雜的CASE...END
語句以滿足以下條件。在Sql Server中結合單個case語句中的多個條件
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'
在此先感謝。
謝謝:)有一個愉快的一天 – swetha 2010-06-15 07:13:50