Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

update all records by 20% in a field 1

Status
Not open for further replies.

Cpreston

MIS
Mar 4, 2015
972
GB
Hi

Simple one , or should be , but googled and cant quite find the syntax I need.

I have a table called, delivery and field called linecost. I need to update the line cost field by 20%

So if a cost was £20.00 after the update it should be £24.00
I have 211 rows to update so can use a where clause , but cant quite figure out how the formula

Update delivery
Set linecost = linecost !!!!!!!!
Where deliveryid = 300

This would update one so I know it works, its the !!!! part I cannot work out.

Any ideas please.

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top