Skip to content

Instantly share code, notes, and snippets.

@CliffordAnderson
Last active December 20, 2015 01:38
Show Gist options
  • Save CliffordAnderson/6050034 to your computer and use it in GitHub Desktop.
Save CliffordAnderson/6050034 to your computer and use it in GitHub Desktop.
Example of a FLWOR expression
xquery version "3.0";
(: Squares all odd numbers
and returns in reverse sequence :)
for $i in 1 to 10
let $n := $i * $i
where $i mod 2 != 0
order by $n descending
return $n
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment