Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
ashu1234
Starting Member
9 Posts |
Posted - 2009-04-10 : 13:39:17
|
hello all friendsi have one table , and i want to insert or add salary which employeedoes have salary minimum then reupess 5000 autometically his salary increse by 1000 repess...i m using select salary = salary+1000, empcode from tablenamewhere saalary< 5000empcode salary work_hour EM1001 4000 2 HourEM1002 5000 3 HourEM1003 6000 4hOUREM1004 8000 5 HourEM1005 1000 1 HourEM1006 9000 1 HourEM1007 2300 1 Hourhelp me please ashwaniashwani |
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
yosiasz
Master Smack Fu Yak Hacker
1635 Posts |
Posted - 2009-04-10 : 14:58:10
|
UPDATE OneTableSET Salaray = salary + 1000WHERE salary < 5000Rupeecommon name for the currencies used in India, Pakistan, Sri Lanka, Nepal, Mauritius, and Seychelles; http://en.wikipedia.org/wiki/Rupee<><><><><><><><><><><><><><><><><><><><><><><><><>If you don't have the passion to help people, you have no passion |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
dsindo
Starting Member
45 Posts |
Posted - 2009-04-10 : 17:08:50
|
how much is $1 in rupees, might want that job. |
|
|
ashu1234
Starting Member
9 Posts |
Posted - 2009-04-11 : 07:15:48
|
Rupess means Currency ($)ashwani |
|
|
ashu1234
Starting Member
9 Posts |
Posted - 2009-04-11 : 07:19:12
|
Hello yosiasz !!I am complete with ur help!!Bt what is transaction and rollback in sql server .which problem i send to u this is also done in rollback and transaction .please help me give me one example of rollback and transaction ???????Thanksashwani |
|
|
|
|
|