Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to update table

Status
Not open for further replies.

JPCogAdmin

Programmer
May 22, 2006
110
US
Trying to update one table from the value of another table.
The relationship is one-to-many. Here is my code:

update table1 as t1 set field4 = (select field7 from table2 as t2 where t1.id = t2.id )

Table1 has many and table1 has one. Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top