阅读背景:

SQL Server - 循环表和基于计数的更新

来源:互联网 

I have a SQL Server database. I need to loop through a table to get the count of each value in the column 'RevID'. Each value should only be in the table a certain number of times - for example 125 times. If the count of the value is greater than 125 or less than 125, I need to update the column to ensure all values in the RevID (are over 25 different values) is within the same range of 125 (ok to be a few numbers off)I have a SQL Server database. I need to loop th




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: