When you update a table with WHERE criteria that references another table you need a FROM clause. Here's how I would write your 2 statements.select e.LastName ,e.EmployeeID ,a.EmployeeID ,a.DateAcctToBeDisabled from dbo.tnpNPGSAcct as ainner join dbo.tnpEmployee as e on a.EmployeeID = e.EmployeeID update a SET a.DateAcctToBeDisabled = '3000-10-31 00:00:000'from dbo.tnpNPGSAcct as ainner join dbo.tnpEmployee as e on a.EmployeeID = e.EmployeeID where e.LastName LIKE '[a-g]%' and a.DateAcctToBeDisabled ='2008-12-31 00:00:000'
EDIT:the table aliases and columnar formatting make the statements easier to read.Be One with the OptimizerTG