this will return: "(1 row(s) affected)" But now I need to know, what data was actually inserted? SQL Server has answered this question in 2005 with the OUTPUT statement: This will return a dataset ...
So I am trying to write an update statement that uses two factors to determine the new value of the field, one of the factors is an aggregate function (COUNT). I get the error: An aggregate may not ...