-- UPDATE t0 SET t0.F_UNITIDHS = (CASE t1.FFORBIDSTATUS WHEN 'A' THEN t1.FCONVERTNUMERATOR ELSE 1 END)
SELECT t0.FMATERIALID,t0.F_UNITIDHS,t1.FCONVERTNUMERATOR
    ,(CASE t1.FFORBIDSTATUS WHEN 'A' THEN t1.FCONVERTNUMERATOR ELSE 1 END)
FROM T_BD_MATERIAL t0
    INNER JOIN T_BD_UNITCONVERTRATE t1 on t0.FMATERIALID = t1.FMATERIALID
WHERE CONVERT(varchar,GETDATE(),23) = CONVERT(varchar,t0.FMODIFYDATE,23)