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 |
|
mohdmartin
Starting Member
22 Posts |
Posted - 2007-07-07 : 07:38:33
|
| How can update / insert records from table1 colum to table2 colum with condition ?I want to insert/update records like this.update employeeset joine_date = select joine_date from master_tablewhere emp_id.employee=emp_id.master_tableregardsMartin |
|
|
khtan
In (Som, Ni, Yak)
17689 Posts |
Posted - 2007-07-07 : 07:50:36
|
[code]UPDATE eSET joine_date = m.joine_dateFROM employee e INNER JOIN master_table mON e.emp_id = m.emp_id[/code] KH[spoiler]Time is always against us[/spoiler] |
 |
|
|
mohdmartin
Starting Member
22 Posts |
Posted - 2007-07-08 : 04:35:45
|
| Thanks |
 |
|
|
|
|
|