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 to download and install microsoft .net framework version 2.0?
hi i am working as a testengineer , so i want to no the backend data base connection can any one tell mwe in detail
Can coalesce return null?
What is the difference between for xml raw and for xml auto?
What is the purpose of floor function?
how do you determine the Load performance of any query in sql server {example how do u determine performance of a select stmnt which returns Dynamically many no of records ... some times 100,1000,10000 etc., }
What happens to a statement batch if there is a compilation error?
What is proper subset of candidate key?
Define inner join in sql server joins?
What is dbcc updateusage?
How to list all triggers in the database with sys.triggers in ms sql server?
What is postgresql server?
What is a functions and types in sql server?
How do indexes help, types?
What's new in sql management studio for sql server? : sql server management studio