We help IT Professionals succeed at work.
Get Started

SQL Update Query

195 Views
Last Modified: 2021-04-21
I am not a sql expert and am trying to learn SQL as i go for our applications.  I am trying to update my database  My query for selecting is

SELECT     contacts.direct_fax, contacts.direct_phone, contacts.first_name, address.central_phone_number, address.central_fax_number, address.name
FROM         contacts INNER JOIN
                      address ON contacts.address_id = address.id
WHERE     (contacts.first_name = 'ACCOUNTS')

I want to take the results of central_phone_number and central_fax_number on 1 table and update those numbers onto my direct_fax and direct_phone on another table. What is the correct syntax to do this?
Comment
Watch Question
This problem has been solved!
Unlock 1 Answer and 10 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE