Adding amount via update query

  • Thread starter Thread starter djmills1
  • Start date Start date
D

djmills1

Is it possible to add/subtract the same number to different values
sected in a select query?

I have 10 records from a select query, and all have different prices.
I want to add $15 to all ten prices.

Best way, if any?
 
Hi djmills1,

You could run an update query like this:

update TABLENAME set FIELDNAME = FIELNAME+15 where
WHERECLAUSE_FROM_SELECT_QUERY

Hope that helps.

Damian.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top