I've have two tables, Members and Donations linked by a member ID. Members has numerous duplicates. I want to remove them, but before I do, I want to update a member's entries in Donations to a single ID - probably the MAX value (456) in the case of Sara Tam.
Is there a query to select all of Sara's member (and others who have entries in Donations but not Fred who doesn't? How can I associate IDs 123 and 456?
members donations
----------- -----------
123 Sara Tam 123 20.00
456 Sara Tam 123 40.00
789 Sara Tam 333 10.00
. 444 30.00
. 999 30.00
789 Fred Foo