Head's Up! Site migration is underway. Phase 2: migrate recent content
β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