Mar 4, 2005 #1 baddos MIS Joined Dec 3, 2002 Messages 2,360 Location US I have two tables... customer custid int 'Primary Key custshipper int items itemid int 'Primary Key custid int 'Foreign Key itemshipper int I want to update the items table to put each customers shipper into the items table for their items.
I have two tables... customer custid int 'Primary Key custshipper int items itemid int 'Primary Key custid int 'Foreign Key itemshipper int I want to update the items table to put each customers shipper into the items table for their items.
Mar 4, 2005 1 #2 Idokyoku2 Technical User Joined May 16, 2004 Messages 57 Location US I belive you're looking for this: Update Items set itemshipper = b.custshipper from Items a inner join customer b on a.custid=b.custid Be sure to BACKUP before conducting any updates as a rule of thumb. Found that out the hard way! -David Upvote 0 Downvote
I belive you're looking for this: Update Items set itemshipper = b.custshipper from Items a inner join customer b on a.custid=b.custid Be sure to BACKUP before conducting any updates as a rule of thumb. Found that out the hard way! -David