How to avoid cursors?
Answer Posted / sunny
update salary set sal=(
case
when sal between 100 and 300 then sal + 1000
when sal between 300 and 500 then sal + 2000
when sal between 500 and 700 then sal + 3000
end)
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
Do you know what are the differences between lost updates and uncommitted dependencies?
List the different index configurations possible for a table?
what are user defined datatypes and when you should go for them? : Sql server database administration
How to replace null values in expressions using isnull()?
Explain where clause?
How do you make a trace?
Why I am getting this error when dropping a database in ms sql server?
How we can refresh the view?
What is Dependency Injection and provide example?
What is indexing a document?
What is the difference between a stored procedure and a user defined function?
How can you list all the table constraints in a database?
How to rebuild the master database?
Why truncate is ddl?
What is the purpose of update statistics and scope_identity() function?