Mar 4, 2005 #1 baddos MIS Dec 3, 2002 2,360 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 May 16, 2004 57 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