How to update a table with a list of values at a time?

Posted by VJ on Stack Overflow See other posts from Stack Overflow or by VJ
Published on 2010-06-11T15:39:25Z Indexed on 2010/06/11 15:43 UTC
Read the original article Hit count: 263

Filed under:
|
|

I have

update NewLeaderBoards set MonthlyRank=(Select RowNumber() from LeaderBoards) 

I tried it this way -

(Select RowNumber() from LeaderBoards) as NewRanks 
 update NewLeaderBoards set MonthlyRank = NewRanks

But it doesnt work for me..Can anyone suggest me how can i perform an update in such a way..

© Stack Overflow or respective owner

Related posts about tsql

Related posts about sql-server-2008