Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
ralph.devlin
Starting Member
4 Posts |
Posted - 2008-12-11 : 15:06:51
|
| I am trying to devlop a query to update one table with date from another.The main table is dbo.TIUSER the second table is dbo.WORKSTAT. Bother tables can be linked using the TIUSER column that is a number. I want the DEPARTMENT column for each record in dbo.WORKSTAT that matches the TIUSER column in dbo.TIUSER to be updated with what the TIUSER.DEPARTMENT contains. ThanksRalph |
|
|
hey001us
Posting Yak Master
185 Posts |
Posted - 2008-12-11 : 15:23:43
|
| UPDATE wSET w.DEPARTMENT = t.DEPARTMENT FROM dbo.WORKSTAT wINNER JOIN dbo.TIUSER t ON d.TIUSER = t.TIUSER hey |
 |
|
|
|
|
|