UPDATE Newchat
Set [Answered] = (Select b.[Answered]
From Table1 b
where Newchat.CHAT_ID = b.[Chat ID]
and Newchat.Chat_Date >= '2017-Feb-22' and Newchat.Chat_Date <= '2017-Feb-28');
이 코드를 실행할 때마다 [Answered]의 모든 행에이 날짜를 제외하고 Null이 표시됩니다. 다소간 제안하십시오. SQL 서버 업데이트 문이 null이 됨
가 나는 또한 필터 적용 노력이 너무 작동하지 않습니다UPDATE Newchat
Set [Answered] = (Select b.[Answered]
From Table1 b
where Newchat.CHAT_ID = b.[Chat ID] and Newchat.[Answered] is not null
and Newchat.Chat_Date >= '2017-Feb-22' and Newchat.Chat_Date <= '2017-Feb-28');
"Newchat합니다. [답변]은 null이 아닌".