Feb 10, 2004 #1 CHUMPY Programmer Joined Oct 8, 2002 Messages 37 Location 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 Joined Dec 12, 2001 Messages 63 Location US I think the correct syntax would be UPDATE tablename set columnname = ??=?? where ??=?? Upvote 0 Downvote
Feb 10, 2004 #3 gunjan14 Programmer Joined Sep 18, 2003 Messages 156 Location 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