I have two tables
1. named "A" has three fields
pat_id (unique integer) and DOS (date field) & DOS2 which
is an empty date field
2. named "B" has two fields(Pat_id & DOS)
I am trying to update the field in table "A" called DOS2 so that it
would contain the date field from table "B"
update a_patient set DOS2 = b_patient.DOS where
a_patient.pat_id in (select pat_id from b_patient)
Even though I have unique pat_id's in both tables and all the pat_id's in table "A" are in table "B", I get a dulpicate row error in table "A" when trying to update.
Michael
1. named "A" has three fields
pat_id (unique integer) and DOS (date field) & DOS2 which
is an empty date field
2. named "B" has two fields(Pat_id & DOS)
I am trying to update the field in table "A" called DOS2 so that it
would contain the date field from table "B"
update a_patient set DOS2 = b_patient.DOS where
a_patient.pat_id in (select pat_id from b_patient)
Even though I have unique pat_id's in both tables and all the pat_id's in table "A" are in table "B", I get a dulpicate row error in table "A" when trying to update.
Michael