Solved

Update A set A.a = B.c, A.b = B.d where A.x = B.y - Why Can't I?

Posted on 2001-08-07
2
227 Views
Last Modified: 2008-03-06
Why won't SQL let me do this (apart from the obvious error message) and how can I get around it?

Thanks so much!!

Luke.
0
Comment
Question by:Paninaro080701
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 3

Accepted Solution

by:
trouta earned 100 total points
ID: 6360787
Try this
Update A
set A.a = B.c, A.b = B.d
from b
where A.x = B.y
0
 

Author Comment

by:Paninaro080701
ID: 6360804
Excellent!  Thank you.

Luke.
0

Featured Post

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

Introduction In my previous article (http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_9150-Loading-XML-Using-SSIS.html) I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Via a live example, show how to shrink a transaction log file down to a reasonable size.

740 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