Reputation: 3
Say I want to take average of a set of numbers I have in a table and want to put that average in another column in the same table. How would I do that?
Help is much appreciated
Upvotes: 0
Views: 63
Reputation: 400
UPDATE [tblname] SET [columnname] = ([h]-[hr])/([ab]-[k]-[hr])
Reputation: 1425
Try....
UPDATE hitters SET ColumnName = (((h-hr)/(ab-k-hr))
Upvotes: 2