Solved

Help with update query

Posted on 2008-10-30
1
199 Views
Last Modified: 2012-05-05
Please take a look at the attached SQL query. I need to update MASTER6.SSN = secaccessmerge.SSN where L__d__bName matches in both tables AND where MASTER6.Desired__bAction = "Physician'

Do I have the syntax correct? Thanks in advance.
UPDATE MASTER6 INNER JOIN secaccessmerge ON MASTER6.L__d__bName=secaccessmerge.L__d__bName AND MASTER6.Desired__bAction = 'Physician' SET MASTER6.SSN=secaccessmerge.SSN

Open in new window

0
Comment
Question by:isaacr25
1 Comment
 
LVL 39

Accepted Solution

by:
BrandonGalderisi earned 500 total points
ID: 22845215
Close...

UPDATE  m
SET SSN=s.SSN
from MASTER6  m
INNER JOIN secaccessmerge  s
  ON m.L__d__bName=s.L__d__bName
  AND m.Desired__bAction = 'Physician'

0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

'Between' is such a common word we rarely think about it but in SQL it has a very specific definition we should be aware of. While most database vendors will have their own unique phrases to describe it (see references at end) the concept in common …
Confronted with some SQL you don't know can be a daunting task. It can be even more daunting if that SQL carries some of the old secret codes used in the Ye Olde query syntax, such as: (+)     as used in Oracle;     *=     =*    as used in Sybase …
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question