를 기반으로 쿼리 아래 참조하십시오SQL 서버 - 업데이 트를 구축 절 조건
Update Employee
Set AccountManagerId = a.AM_ID
FROM Employee e INNER JOIN AccountManager a on e.Id = a.Id
WHERE
** (WHERE 절에 추가해야합니다) 부분 아래 구성하기 위해 고투 **
If a.Department is not null then [FOLLOWING NEEDS TO BE ADDED TO WHERE CLAUSE] (e.Department = a.department)
where to this where 절을 추가하는 데 어려움을 겪고 있습니다. 부서가 null가 아닌 경우 그래서 다음 절
지금 20K 위해 가기? ;) – mattytommo
@mattytommo 1millionK;) –
@mattytommo - 정확히! 목표는 내 담당자를 그렇게 높게 설정하면 stackoverflow 예외가 발생합니다. o) –