Sep 19, 2003 #1 hermantb Programmer Aug 30, 2002 18 US I am trying to make sure account names in two tables are the same, but this update query is failing. What am I doing wrong? update s set s.account = a.account from account a inner join accountsummary s on a.accountid = s.accountid Thanks, TBH
I am trying to make sure account names in two tables are the same, but this update query is failing. What am I doing wrong? update s set s.account = a.account from account a inner join accountsummary s on a.accountid = s.accountid Thanks, TBH
Sep 19, 2003 #2 TitleistDBA IS-IT--Management Apr 22, 2002 162 US try this update s set s.account = a.account from s, a where s.id = a.id http://www.acushnetcompany.com Upvote 0 Downvote
try this update s set s.account = a.account from s, a where s.id = a.id http://www.acushnetcompany.com
Sep 22, 2003 #3 iker3000 Programmer Feb 20, 2002 56 HU It should be more efficient and clear, if you use a join? UPDATE s SET account = a.account FROM s INNER JOIN a ON a.ID = s.ID Iker Upvote 0 Downvote
It should be more efficient and clear, if you use a join? UPDATE s SET account = a.account FROM s INNER JOIN a ON a.ID = s.ID Iker