HiI need to do a update based on this query..SELECT dbo.Roles.IDFROM dbo.Login INNER JOIN dbo.Roles ON dbo.Login.UID = dbo.Roles.UID INNER JOIN dbo.Customer ON dbo.Login.CustID = dbo.Customer.CustIDWHERE (dbo.Customer.CustID = 2) AND (dbo.Roles.NodeID = 77) AND (dbo.Roles.IsActive = 0)
From this query I get a lot of ID's and they need to be used in the update statement which is supposed to look like this..UPDATE dbo.Roles SET IsActive = 1 WHERE ID = (all my ID's from above)
How would I do that?