I think the syntax is along the lines of

UPDATE    tblA
SET       tblA.something = tblB.something
FROM      tblB
WHERE     (tblA.something = tblB.something)


-----Original Message-----
From: Andy Matthews [mailto:[EMAIL PROTECTED]
Sent: 20 October 2005 14:17
To: CF-Talk
Subject: RE: WHAT'S WRONG WITH THIS QUERY?


I was always under the impression that you couldn't join tables in anything
other than a SELECT query.

<!----------------//------
andy matthews
web developer
ICGLink, Inc.
[EMAIL PROTECTED]
615.370.1530 x737
--------------//--------->

-----Original Message-----
From: Nomad [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 19, 2005 6:04 PM
To: CF-Talk
Subject: WHAT'S WRONG WITH THIS QUERY?


Hello,

This query works fine with Access.

With SQL server it creates an error.

Here's the query:

UPDATE NewProduct INNER JOIN OldProduct ON NewProduct.dealerpartno  =
OldProduct.dealerpartno SET NewProduct.details = OldProduct.details


Much appreciate any help in debuging.

Thanks in advance.

Ben





~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:221631
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to