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
What is a data collection table?
what are the steps you will take to improve performance of a poor performing query? : Sql server database administration
Can one drop a column from a table?
Does a sql server 2005 select statement require a from?
What is mscorsvw.exe - process - microsoft .net framework ngen?
How to create a Master database in SQL server ?
What do you mean by sql server agent?
What are the differences between left join and inner join in sql server?
What is filtered index?
How to compare the top two records using sql?
What is sql server query analyzer?
What are the instances when triggers are appropriate?
How many types of stored procedures are there in sql server?
What are the steps to process a single select statement?
Hi, I Created 3 Tables Person(PersID[prkey],Name,Email,Password), Project(ProjName,ProjID[prkey],ProjLeader,ProjManager) & ProjectInvolvement(EntryDate,ProjID[frkey],PersID[frkey],ProjDuration). For this how can i INSERT,UPDATE & DELETE Through PROCEDURE? Please Post the Answer for me. Desai.