Feb 10, 2004 #1 CHUMPY Programmer Oct 8, 2002 37 GB I have two tables a and b both conating fields x and y, I wish to update table a field x with the value of table b field x where a.y=b.y; update a set a.x=b.x where a.y=b.y but this doesn't seem to work am I am missing something? thanks Gareth
I have two tables a and b both conating fields x and y, I wish to update table a field x with the value of table b field x where a.y=b.y; update a set a.x=b.x where a.y=b.y but this doesn't seem to work am I am missing something? thanks Gareth
Feb 10, 2004 #2 heydyrtt Programmer Dec 12, 2001 63 US I think the correct syntax would be UPDATE tablename set columnname = ??=?? where ??=?? Upvote 0 Downvote
Feb 10, 2004 #3 gunjan14 Programmer Sep 18, 2003 156 IN Hi Gareth, The syntax is update a set a.x = (select b.x from b where b.y = a.y) Thanks and Regards Gunjan Upvote 0 Downvote
Hi Gareth, The syntax is update a set a.x = (select b.x from b where b.y = a.y) Thanks and Regards Gunjan