XQueries and XPaths Flashcards Preview

Information Management > XQueries and XPaths > Flashcards

Flashcards in XQueries and XPaths Deck (18)
Loading flashcards...
1

what does FLWOR stand for

for
let
where
order by
return

2

structure of a for clause

FOR IN , ....

3

what do variables start with

$

4

structure for a let clause

LET := , ....

5

what are curly brackets used for in x queries

to indicate that the expression enclosed needs to be evaluated by the x query processor

6

what is the where clause used in conjunction with

for

7

what does the where clause do

filters the binding tuples produced by the for and let clause

8

how to order the return values

order by

9

what is a union

contains all nodes that occur in ether of the operands

10

what is the intersect operands

produces a sequence containing all the nodes that occur in both operands

11

what is except operands

produces a sequence containig all the nodes that occur in its first operand but not the second

12

in an if clause, what three statements are needed

if
then
else

13

what is the some expression

returns true if the test expression is true for some variable binding

14

what is the every expression

returns true if the test expression is true for every variable binding

15

example of built in functions

string-join
name() returns name of node
data() gets whats inside the node
distinct-values() removes duplicates

16

general format of a user defined X query function

declare function local:function_Name(list parameters)
{
function body
};

17

how to call a user defined function

{local:function_Name(Parameters)}

18

how to declare types in user defined functions

xs:type

eg xs:integer

xs:string