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.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Salery Increase

Author  Topic 

asstman37
Starting Member

1 Post

Posted - 2012-03-24 : 18:23:11
I am trying to increase all employee salaries by 10% using these columns from my Employee table.
EmployeeID
Lastname
Firstname
[Address]
City
[State]
Telephoneareacode
Telephonenumber
EEO1Classification
HireDate
Salary
Gender
Age
JobID

lou vega

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2012-03-24 : 19:30:37
yes. What have you tried ?


KH
[spoiler]Time is always against us[/spoiler]

Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2012-03-24 : 20:28:10
hint: use an UPDATE

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

jackv
Master Smack Fu Yak Hacker

2179 Posts

Posted - 2012-03-25 : 02:35:01
Adapt for the UPDATE statement

declare @salary decimal(10,2)
set @salary = 500.00
PRINT @salary
SET @salary = @salary + ((@salary / 100)*10)
--increase by 10%
PRINT @salary

Jack Vamvas
--------------------
http://www.sqlserver-dba.com
Go to Top of Page

jezemine
Master Smack Fu Yak Hacker

2886 Posts

Posted - 2012-03-26 : 01:45:41
now that's a problem you will never encounter in any real business...


elsasoft.org
Go to Top of Page
   

- Advertisement -