0 | Following is what I created in Neo4j: Nodes: Customer Names, Customer Address and Customer Contact Linked these nodes based on common relationships between all three. Data Model ->
I can see all three nodes linked in Neo4j. Contact contain email and phone numbers so some cases customer name node is connected to email address, phone number and address. In my learning curve I am asked to show how many same Contact (email, phone no) are used by different customer names also how many same address used by different customer names. Based on my little experience I tried few queries but couldn't reach to results. Tried following query ->
|
MATCH (person:Person)-[:ADDRESS_AT]->(address:Address)
RETURN address, COLLECT(person.name) AS names;