Order-by clause
The order in which the return clause of a FLWOR expression is evaluated with the appropriate variable allocation can be explicitly enforced by the sorting clause order by.…
Cancellation of the sorting
If, from the view of the application, a sorting is completely refused, it can be communicated to the system with the help of the fn:unordered() function.…
Return clause
The return clause of a FLWOR expression indicates to some extent the template according to which the result document shall be constructed. An important point to…
Nesting of FLWOR expressions
For the illustration of nested FLWOR expressions in return clauses, the query pattern of the pivoting of XML documents is used as an example. Concretely, a…
Bracketing in the Return clause
Apart from the embedding of XQuery expressions in the return clause, a characteristic feature of the priority regulation with regard to the…
Tracing of references
In principle, elements from various XML documents or within a XML document may be put into relation in two ways. The join (known from…
Joins
In contrast to the relational modelling for the representation of discourse areas, there is a broad range of liberties with regard to the structuring of the representation in…
Symmetric join
In XQuery, a join is specified as a "nested for loop", whereby in the for clause(s) the control variables are bound, in the where clause the join predicate is…
Left or right outer join
The symmetry of the nested for clauses is only to be maintained if it can be ensured that there is at least one join partner for each…
Join variants
While the semantics of a left or right outer join can be structurally integrated into the hierarchical concept of the XML data model without any problems, the definition of a…