Shot in the dark:UPDATE
bh
SET
Original_or_Resubmittal_Type =
CASE
WHEN br.Billing_ID IS NOT NULL THEN 'RESUBMITTAL'
ELSE 'ORIGINAL'
END
FROM
#Billing_Holds AS bh
LEFT OUTER JOIN
Resubmittal AS br
on bh.Last_Attempted_Billing_ID = br.Billing_IDIf that doesn't work post your DDL, DML and Expected output:
http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx