Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
06-07-2019 08:54 AM
Hi, I'm new to Neo4j so I don't know if this is a real bug or not.
The exercise 4.2 says "Retrieve all actors that were born in the 70’s and return their names and year born" and the provided solution is:
MATCH (a:Person)
WHERE a.born >= 1970 AND a.born < 1980
RETURN a.name as Name, a.born as 'Year Born'
but I think the result doesn't contain only actors if we don't specify also the relationship :ACTED_IN like this:
MATCH (a:Person) -[:ACTED_IN] -> ()
WHERE a.born >= 1970 AND a.born < 1980
RETURN a.name as Name, a.born as 'Year Born'
Am I right?
Thanks
Solved! Go to Solution.
06-07-2019 09:34 AM
You are absolutely correct. The question should have been, Retrieve all people, not actors.
We will correct it.
Thanks,
Elaine Rosenberg
06-07-2019 09:34 AM
You are absolutely correct. The question should have been, Retrieve all people, not actors.
We will correct it.
Thanks,
Elaine Rosenberg
All the sessions of the conference are now available online