Join William Lyon for an in-depth discussion in this video Compute average accident severity, part of Database Clinic: Neo4J.
- [Instructor] We've designed our graph data model…and imported our data,…so now it's time to write the Cypher query…that will find all accidents that involved a motorcycle…and compute the average severity of the accident…for each distinct type of motorcycle.…First, let's verify that our import was correct…by inspecting the graph data model using db.schema,…and we can see this matches the data model…that we defined earlier,…we have an accident that involves a vehicle…where that vehicle is type of, vehicle type.…
So now let's start writing our query.…We'll start by finding all the vehicle type nodes…that contain the word motorcycle.…We do this by writing a match statement.…Now match takes a graph pattern,…and the pattern here is pretty simple.…In this case, we want a match on nodes…with the label vehicle type,…we'll use a where clause to define a predicate…where the name property on vehicle type…contains the word motorcycle,…contain is the string-matching operator…that will allow us to search for substring matches…
- Strengths and weaknesses of Neo4j
- Data modeling
- Creating a database
- Joining data sets
- Modeling data for joining data sets
- Searching a database
- CRUD operations
- Performing calculations
Skill Level Intermediate
1. Neo4j in Five Minutes
A brief overview of Neo4j3m 23s
2. Create a Database
3. Join Two Datasets
4. Search a Database
5. Create, Read, Update, and Delete Operations
6. Averages and Calculations
Next steps1m 44s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.