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
Explain iaas, paas and saas?
Are there any preferred steps that need to be taken care of before starting the installation of sql server 2000?
Can you explain how long are locks retained within the repeatable_read and serializable isolation levels, during a read operation with row-level locking?
What is the difference between web edition and business edition?
List out the difference between union and union all in sql server?
Explain error and transaction handling in sql server?
What is data compression?
What is report subscription?
What is the difference between ddl,dml and dcl commands?
Explain about sql server login?
What is the latest version of microsoft sql server?
What is updatable resultset?
What is resource db in sql server?
Do you know the cursor optimization tips?
What are the types of containers in ssis?