Hi,
How to change such Oracle syntax to Sql server?
update tab_a a
set fld_b=amount/(select case when isnull(fld_a,0)=0 then 1 else fld_a end
from tab_b b
where a.common_id=b.common_id)
Many Thanks & Best Regards,
HuaMin Chen
(If you mark it then it means the post is helpful/meaningful for other people's reference in the future!)