How to avoid cursors?
Answer Posted / mahima
to avoid cursor use CASE and SET .
to give increment to the employee depending upon the salary
update empsal
set
case when sal between 2000 AND 3000 then sal+1000
when sal between 3000 AND 4000 then sal+2000
end
Is This Answer Correct ? | 6 Yes | 3 No |
Post New Answer View All Answers
How do you handle datasets larger than 50 gb?
What are the transaction properties?
How to call stored procedure using http soap?
What objects does the fn_my_permissions function reports on? : sql server security
How do I find the size of a sql server database?
Explain the ways to controlling cursor behavior?
Explain the truncate command? : SQL Server Architecture
Why do we use non clustered index?
What is the difference between a view and a stored procedure?
What is database mirroring?
Explain Reporting Life Cycle?
How do I run sql server 2014?
What is recompile sql server?
How do I start sql server 2017?
What is the boxing and unboxing concept in .net?