﻿update t set t.AI_ID_DocumentPardakhtani = t.AI_ID_Document
from Tafsili t where t.Dom_ID_Noe = 49 and isnull(t.AI_ID_Document,0) > 0 and t.AI_ID_DocumentPardakhtani is null
