G
Guest
Hi, I went through a lot of the answers to similar questions, but there are
always issues, so I though I'd give my specific situation and hopefully get a
working answer.
I have two databases, 'Main' and 'Detail.' They are related by a column
called 'id'. The Main and Detail databases have a relationship so that there
is a + sign next the each row in Main, and clicking it will show you the
information for that id # in Detail. In Main, there are these columns - id
(which has a primary key), first name, last name, phone, fax, email.
What I need is to delete all the rows in Main that have duplicates for both
First Names and Last Names. I would like the kept one to be the one last
entered (higher ID). I would also like to delete the corresponding row in
the Detail database, if possible.
Like I said, I've tried several suggestions I read, but there have always
been issues like the delete query running for an insanely long time and never
finishing (the database is only 6,000 records) or the columns for phone, fax,
and email not being kept in the final database.
Any help is greatly appreciated.
always issues, so I though I'd give my specific situation and hopefully get a
working answer.
I have two databases, 'Main' and 'Detail.' They are related by a column
called 'id'. The Main and Detail databases have a relationship so that there
is a + sign next the each row in Main, and clicking it will show you the
information for that id # in Detail. In Main, there are these columns - id
(which has a primary key), first name, last name, phone, fax, email.
What I need is to delete all the rows in Main that have duplicates for both
First Names and Last Names. I would like the kept one to be the one last
entered (higher ID). I would also like to delete the corresponding row in
the Detail database, if possible.
Like I said, I've tried several suggestions I read, but there have always
been issues like the delete query running for an insanely long time and never
finishing (the database is only 6,000 records) or the columns for phone, fax,
and email not being kept in the final database.
Any help is greatly appreciated.