Project

Profile

Help

How to connect?
Download (389 Bytes) Statistics
| Branch: | Revision:

he / src / use-cases / r / q3.xq @ a31dd97a

1
<result>
2
  {
3
    for $u in doc("users.xml")//user_tuple
4
    for $i in doc("items.xml")//item_tuple
5
    where $u/rating > "C" 
6
       and $i/reserve_price > 1000 
7
       and $i/offered_by = $u/userid
8
    return
9
        <warning>
10
            { $u/name }
11
            { $u/rating }
12
            { $i/description }
13
            { $i/reserve_price }
14
        </warning>
15
  }
16
</result>
(28-28/42)