opencypher org opencypher googlegroups com opencypher org
play

opencypher.org | opencypher@googlegroups.com opencypher.org | - PowerPoint PPT Presentation

opencypher.org | opencypher@googlegroups.com opencypher.org | opencypher@googlegroups.com DO opencypher.org | opencypher@googlegroups.com UNION INTERSECT opencypher.org | opencypher@googlegroups.com


  1. opencypher.org | opencypher@googlegroups.com opencypher.org | opencypher@googlegroups.com

  2. ● ● DO ● ● opencypher.org | opencypher@googlegroups.com

  3. ● UNION ● INTERSECT opencypher.org | opencypher@googlegroups.com

  4. ● EXCLUSIVE UNION ● EXCLUDE opencypher.org | opencypher@googlegroups.com

  5. MATCH (a:Person)-[:LIVES_IN]->(:City {name: "Berlin"}) RETURN * INTERSECT MATCH (a:Person)-[:BORN_IN]->(:City {name: "London"}) RETURN * opencypher.org | opencypher@googlegroups.com

  6. MATCH (a:Person)-[:LIVES_IN]->(:City {name: "Berlin"}) RETURN * INTERSECT { MATCH (a:Person)-[:BORN_IN]->(:City {name: "London"}) RETURN * UNION MATCH (a:Person)-[:BORN_IN]->(:City {name: "New York City"}) RETURN * } opencypher.org | opencypher@googlegroups.com

  7. MATCH (a:Person)-[:BORN_IN]->(:City {name: "London"}) RETURN * UNION MATCH (a:Person)-[:BORN_IN]->(:City {name: "New York City"}) RETURN * INTERSECT MATCH (a:Person)-[:LIVES_IN]->(:City {name: "Berlin"}) RETURN * opencypher.org | opencypher@googlegroups.com

  8. ● UNION ALL ● INTERSECT ALL ● EXCLUDE ALL ● UNION MAX ● EXCLUSIVE UNION MAX opencypher.org | opencypher@googlegroups.com

  9. ● <q1> EXCEPT <q2> EXCEPT <q3> ... => <q1> EXCEPT (<q2> EXCEPT (<q3> EXCEPT ( ... ) ) ) ● RETURN NULL EXCEPT RETURN NULL => Empty Result opencypher.org | opencypher@googlegroups.com

  10. ● { ... } UNION { ... } { { ... } UNION { ... } EXCEPT ... } opencypher.org | opencypher@googlegroups.com

  11. ● THEN ● CROSS ● OTHERWISE opencypher.org | opencypher@googlegroups.com

  12. ● WITH ● ● ○ ○ MATCH ... RETURN * THEN MATCH ... RETURN * opencypher.org | opencypher@googlegroups.com

  13. MATCH (city:City) RETURN city CROSS MATCH (continent:Continent) RETURN continent THEN RETURN city.name, continent.name, EXISTS { (city)-[:PARTNER]-(other:City)-[:IN]->(continent) } opencypher.org | opencypher@googlegroups.com

  14. MATCH (p:Person)-[:LIVES_IN]->(c:City) RETURN * LIMIT 1 OTHERWISE MATCH (a:Person)-[:WORKS_IN]->(c:City) RETURN * LIMIT 1 THEN MATCH (c)-[:RECOMMEND]->(attraction:Attraction) RETURN p.name, attraction.name, attraction.price opencypher.org | opencypher@googlegroups.com

  15. ● ● ● opencypher.org | opencypher@googlegroups.com

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend