Sha256: 11eb20c24ed2d4513320a23c4b67bd71d8ea069d89399451bc5090215da5c928
Contents?: true
Size: 862 Bytes
Versions: 2
Compression:
Stored size: 862 Bytes
Contents
<result> { for $seller in doc("users.xml")//user_tuple, $buyer in doc("users.xml")//user_tuple, $item in doc("items.xml")//item_tuple, $highbid in doc("bids.xml")//bid_tuple where $seller/name = "Tom Jones" and $seller/userid = $item/offered_by and contains($item/description , "Bicycle") and $item/itemno = $highbid/itemno and $highbid/userid = $buyer/userid and $highbid/bid = max( doc("bids.xml")//bid_tuple [itemno = $item/itemno]/bid ) order by ($item/itemno) return <jones_bike> { $item/itemno } { $item/description } <high_bid>{ $highbid/bid }</high_bid> <high_bidder>{ $buyer/name }</high_bidder> </jones_bike> } </result>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
magic_xml-0.1.1 | xquery_use_cases/rdb/q5.xquery |
magic_xml-0.1.0 | xquery_use_cases/rdb/q5.xquery |