(Q4) List the names of the second-level managers of all employees whose rating is "Poor".

/emp[rating = "Poor"]/@mgr->emp/@mgr->emp/name
  • This example is meant to demonstrate the cleaner syntax of the dereference operator
  • The leading slash (/) denotes the "implicit root node", defined by the environment in which the query is executed. It enables querying across multiple documents.
<<<  1 2 3 4 5 6 7 8 9 10 11 12 13 14 15    >>>