I am trying to find all the 'Person' nodes WHERE firstName, lastName, and dateOfBirth match but other properties may differ.
I want to create a node 'Same' in the following structure: (:Person)-[SAME_AS]->(:Same)
MATCH (a:Person), (b:Person)
WHERE
a.firstName = b.firstName
AND a.lastName = b.lastName
AND a.birthDts = b.birthDts
MERGE (a)-[pr:SAME_AS]->(c:Same)<-[pr1:SAME_AS]-(b)
RETURN a, b, c;
Any suggestions?