Solved

Help with update query

Posted on 2008-10-30
1
191 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

Suggested Solutions

Title # Comments Views Activity
oracle query help 18 99
MS SQL export CSV & schedule It 9 52
Best way to use SSMS intellisense when querying 5 61
Query Peformance + mulitple query plans 9 47
In database programming, custom sort order seems to be necessary quite often, at least in my experience and time here at EE. Within the realm of custom sorting is the sorting of numbers and text independently (i.e., treating the numbers as number…
PL/SQL can be a very powerful tool for working directly with database tables. Being able to loop will allow you to perform more complex operations, but can be a little tricky to write correctly. This article will provide examples of basic loops alon…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

911 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now