visual studio 2005 - Updating a SQL table where items to change are identified in another table that is linked -
everywhere can find how update table data in table not looking that. have 2 tables table1 , table2. table1 has column pulldate , column jobnmbr. table2 has column jobnmbr , column project. 2 tables link @ jobnmbr column. need bulk update table1.pulldate per project number, project number stored in table2.project.
using visualstudio 2005 , in vb code not c+, know code (if there any) links tables , allows me update table1.pulldate records grouped table2.project? providing trigger update using textbox [txtbox_pulldate] , nearby button [button_updatepulldate].
thanks bunch
chuck vensel
i think understand want update table1 given matching column in table2? write sql update select except replace select clause update clause.
update table1 set [pulldate] = your_value table1 join table2 on table2.[jobnmbr] = table1.[jobnmbr] table2.[project] = your_project_id
Comments
Post a Comment