Hi all,
I am getting an error message when attempting to perform an Aggregate in the SET clause of an UPDATE statement. What I want to do is to update a column in one table with the SUM of two columns from another table - why is this not possible? (I am using MS SQL Server)
My query is as follows:
ThanksCode:UPDATE pts_patient_tran SET pts_escorts = SUM(CAST(meridian_test.dbo.escin AS INT) + CAST(meridian_test.dbo.escoutype AS INT)) WHERE pts_fk_master = meridian_test.dbo.planpatients
Tryst




Bookmarks