update UrgentLevel set expectUseTimeDefauleValue = (select case when max(expectUseTimeDefauleValue) is null then 60 else max(expectUseTimeDefauleValue) end from AllUrgentAdditionalInfo); update UrgentLevel set expectUseTimeOflimitTime = (select case when max(expectUseTimeOflimitTime) is null then 0 else max(expectUseTimeOflimitTime) end from AllUrgentAdditionalInfo);