all groups > sql server odbc > june 2005 >
You're in the

sql server odbc

group:

Updating Field value from Field in another table


Updating Field value from Field in another table Greg
6/24/2005 9:40:04 PM
sql server odbc:

Is there a where to Update the Value of a Field in one table to a Field
Value from another table.

The following works in MS Access but I am unsure on how to do the same in
SQL 2000

UPDATE [ci_CaseData] INNER JOIN [ci_Addresses] ON [ci_CaseData].[CaseGUID] =
[ci_Addresses].[CaseGUID] SET [ci_CaseData].[NameGUID] =
[ci_Addresses].[AddrGUID]



--
Gregory M. La Due
Twin Tiers Technologies, Inc.

Re: Updating Field value from Field in another table Jens Süßmeyer
6/24/2005 11:54:03 PM
Its

Update SomeTable
Set Col1 = T2.Col5
FROM SomeTable T1
Inner join SomeOtherTable T2
ON T1.IDCol = T2.IdCol

HTH, Jens SUessmeyer.


"Greg" <gml_nospam_@twintierstech.com> schrieb im Newsbeitrag
news:U4%ue.53242$g5.25596@twister.nyroc.rr.com...
[quoted text, click to view]

Re: Updating Field value from Field in another table Greg
7/1/2005 12:00:00 AM
Thanks, that did the trick.

--
Gregory M. La Due
Twin Tiers Technologies, Inc.




"Jens Süßmeyer" <Jens@Remove_this_For_Contacting.sqlserver2005.de> wrote in
message news:ewY79cQeFHA.1136@TK2MSFTNGP12.phx.gbl...
[quoted text, click to view]

AddThis Social Bookmark Button