Advertisement

07.14.2008 at 11:19AM PDT, ID: 23563640
[x]
Attachment Details

SQL Update Query

Asked by Jiggens in SQL Query Syntax, Databases Miscellaneous, SQL Server 2005

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?
Start Free Trial
[+][-]07.14.2008 at 11:27AM PDT, ID: 22000648

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.14.2008 at 11:32AM PDT, ID: 22000677

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.14.2008 at 11:33AM PDT, ID: 22000685

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: SQL Query Syntax, Databases Miscellaneous, SQL Server 2005
Sign Up Now!
Solution Provided By: drazen_nikolic
Participating Experts: 3
Solution Grade: A
 
 
[+][-]07.14.2008 at 12:03PM PDT, ID: 22000966

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.14.2008 at 12:12PM PDT, ID: 22001049

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.14.2008 at 12:31PM PDT, ID: 22001229

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.14.2008 at 12:32PM PDT, ID: 22001256

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.14.2008 at 12:35PM PDT, ID: 22001285

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.14.2008 at 12:47PM PDT, ID: 22001401

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 - Hierarchy / EE_QW_2_20070628