PASTEBIN
| #1 paste tool since 2002
create new paste
tools
api
archive
faq
PASTEBIN
create new paste
trending pastes
sign up
login
my alerts
my settings
my profile
Don't like ads?
PRO users
don't see any ads ;-)
Public Pastes
Untitled
2 sec ago
Untitled
7 sec ago
CASUAL r492-AdamOutler
26 sec ago
Untitled
10 sec ago
Untitled
12 sec ago
Untitled
18 sec ago
Cassie's Survey
31 sec ago
Untitled
20 sec ago
Untitled
By: a guest on
Jun 2nd, 2012
| syntax:
None
| size: 0.20 KB | hits: 10 | expires: Never
download
|
raw
|
embed
|
report abuse
|
print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
How to update a field of a table with some percentage of its value in SQL?
update Mytable set Sal=1.05*sal where departmentId=xxx
update Employee set salary = (salary * 1.05) where Dept = 'Accounts'
create a
new version
of this paste
RAW Paste Data
How to update a field of a table with some percentage of its value in SQL? update Mytable set Sal=1.05*sal where departmentId=xxx update Employee set salary = (salary * 1.05) where Dept = 'Accounts'