Introduction to Graph Data
Node and edge tables for many-to-many relationships, and the MATCH and SHORTEST_PATH syntax that queries them.
- 2 lessons
- Module quiz
Some data is mostly about relationships: who follows whom, which customers bought which products, which components depend on which. SQL graph tables model such data as nodes and edges and query it with pattern syntax that is easier to read than chains of joins.
What the exam expects
Questions test creating node and edge tables, edge constraints, MATCH patterns, SHORTEST_PATH with FOR PATH and the graph path functions, and choosing graph tables over junction tables.
How this module is organized
Modelling Data with Node and Edge Tables covers modelling and constraints. Graph Queries with MATCH and SHORTEST_PATH covers MATCH patterns and SHORTEST_PATH.