You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to use Valentine to check if two tables are joinable. The first table is Encounter: (cust_nbr, phone, email). The second table is CustomerContacts (cust_nbr, phone, email).
The relationship between these tables is messy:
An encounter might not have a cust_nbr value. But its phone and email values might map to values in CustomerContacs table.
If an encounter has a cust_nbr value, there will be a record in CustomerContact with that cust_nbr, but the encounter's phone and email might not match the values in the CustomerContact table
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I want to use Valentine to check if two tables are joinable. The first table is Encounter: (cust_nbr, phone, email). The second table is CustomerContacts (cust_nbr, phone, email).
The relationship between these tables is messy:
Example:
encounter (null, 1112223333, [email protected]) matches (cust-123, 1112223333, null)
encounter (null, 1112223333, [email protected]) matches (cust-123, null, [email protected])
encounter (null, 1112223333, [email protected]) probably matches (cust-123, 2223334444, [email protected])
encounter (cust-234, 2112223333, [email protected]) matches (cust-234, 9999999999, [email protected])
encounter (cust-345, 3112223333, [email protected]) matches both (cust-345, 9999999999, [email protected]) and (cust-345, 3112223333, [email protected])
My desired result is that if MOST ENCOUNTERS match to SOME customer contact, the tables are joinable. Looking for advice how to test this match.
Beta Was this translation helpful? Give feedback.
All reactions