Combine a Company/Individual (With Duplicate ADDRESS\Entity Entry)
This occurs when there is one entry in CARS_ENTITY but two or more records in CARS_ADDRESS for the same client with ADDRESS_TYPE = 2 (this will result in the display of more than one record for the company while there is actually one record in CARS_ENTITY).
Get CLIENT_ID from CARS_ENTITY using the COMPANY_LEGAL_NAME / FAMILY_NAME
Keep note of the CLIENT_ID (ENTRY) that will be kept
Go to CARS_ADDRESS and filter By CLIENT_ID (BOTH OR MORE)
Go to CARS_AUTHORIZED_PARTICIPANTS and filter By ADDRESS.SEQUENCE_NO (USING CARS_ADDRESS SEQUENCE_NO for those entries
Combine the CLIENT_ID and ADDRESS_SEQUENCE_NO to the one that will be kept in CARS_ADDRESS
Delete the CARS_ADDRESS entry that is removed from CARS_AUTHORIZED_PARTICIPANTS (Keep a note of the SEQUENCE_NO)
Delete redundant record from CARS_ENTITY
There are other TABLES that might need to be consolidated with the CLIENT_ID that will be KEPT
YA01_GALRO_USER_REV4F80724008
A01_GALRO_USER_REQUEST
YA02_GALRO_CLIENT