XQuery is to XML what SQL is to database tables.
XQuery is case-sensitive and XQuery elements, attributes, and variables must be valid XML names.
FLWORFLWOR is an acronym for "For, Let, Where, Order by, Return".
- The for clause selects all book elements under the bookstore element into a variable called $x.
- The where clause selects only book elements with a price element with a value greater than 30.
- The order by clause defines the sort-order. Will be sort by the title element.
- The return clause specifies what should be returned. Here it returns the title elements.