why not store the values in another table like table2--------------startrange,endrange,value100 , 200 , 123140 , 180 , 223...
and then use table in join like what Tara showedupdate t1set t1.code= t2.[value]from table1 t1join table2 t2on t1.score between t2.startrange and t2.endrange
------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/