Is there another way to do this query.
update tempdb.MD_CLAIMS set AWP_PCT = (AWP/SUM(AWP)
In this instance I want to divide a number by it's total in the whole table to obtain a percentage.
When I run the query as is, I get a message that I am performing an illegal aggregate operation in a set statement.
Michael
update tempdb.MD_CLAIMS set AWP_PCT = (AWP/SUM(AWP)
In this instance I want to divide a number by it's total in the whole table to obtain a percentage.
When I run the query as is, I get a message that I am performing an illegal aggregate operation in a set statement.
Michael