hai friends
i am having the table like this
TBLKEY EMPKEY EMPNAME
----------- ------------------------------ ------------------------------
1 101 RAJA
2 105 RAJA
3 106 RAJA
4 110 RAJA
i want to to update like this
TBLKEY EMPKEY EMPNAME
----------- ------------------------------ ------------------------------
1 101 RAJA
2 105 POOJA
3 106 THRIU
4 110 POOJA
here i sholud use only one query.i run that query i sholud get the output like this not updating one by one
Have a look:
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=96260
http://www.eggheadcafe.com/community/aspnet/13/10126702/update-single-column-with-multiple-rows.aspx
Sure this links will give you idea to proceed.