(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.
|