Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for $clen in doc('CLENOVI.xml')//CLEN
- order by
- count (for $iznajmi in doc("IZNAJMUVANJA.xml")//IZNAJMUVANJE
- where $clen/@clenID = $iznajmi/CLEN
- and $iznajmi/AKTIVNA = 'DA'
- return $iznajmi ) descending
- return distinct-values(for $iznajmi in doc("IZNAJMUVANJA.xml")//IZNAJMUVANJE
- where $clen/@clenID = $iznajmi/CLEN
- and $iznajmi/AKTIVNA = 'DA'
- return $clen )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement