Forum Replies Created

Viewing post 1 (of 1 total)

  • RE: How to update on condition based?

    -- @NotificationsStatus is table type variable

    UPDATE n

    SET

    n.Name = ns.Name,

    n.EmpCode = ns.EmpCode,

    n.EmailProcessingStatus =

    CASE WHEN ns.EmailProcessingStatus IS NOT NULL THEN ns.EmailProcessingStatus ELSE n.EmailProcessingStatus END,

    n.MobileProcessingStatus =

    CASE WHEN ns.MobileProcessingStatus IS...

Viewing post 1 (of 1 total)