Advertisement
kieni17

Untitled

May 5th, 2020
349
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQL 0.23 KB | None | 0 0
  1. MATCH ( o:Other )
  2. WHERE o.countries IS NOT NULL AND NOT o.countries contains ";"
  3. MERGE ( c:Country { name:o.countries })
  4. MERGE ( o )-[:IN_COUNTRY]->(c)
  5. RETURN c
  6.  
  7. MATCH ( c:Country {name : "UnitedStates" })<-[e]-(o)
  8. RETURN c,e,o
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement