CVS HealthData Engineer · OnsiteCodemia practiceDeduplicate Patient Records Across Pharmacy and Aetna Claims Feeds
Pharmacy patient profiles and Aetna member records arrive in one staging table with source, first_name, last_name, dob, zip, phone and updated_at. Write SQL that groups likely duplicates by normalized name, date of birth and zip, and keeps one golden record per person, preferring the most recently updated row with a phone number.
Medium
Data Manipulation (SQL/Python)