10
다음 설명에 따르면 다음 조건을 충족시키기 위해 CASE...END
문을 복잡한 프레임으로 만들 수 있도록 SQL 서버에서 CASE...END
문을 프레임해야합니다.SQL Server의 단일 사례 문에서 여러 조건 결합
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'
미리 감사드립니다.
당신의WHEN
절 후 조건을 넣어과 같이 할 수
감사의 톤 : 좋은 하루 되세요. – swetha