Advertisement
NikJord

sdfasdf

May 13th, 2015
449
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XBasic 0.41 KB | None | 0 0
  1. for $clen in doc('CLENOVI.xml')//CLEN
  2.      order by
  3.      count (for $iznajmi in doc("IZNAJMUVANJA.xml")//IZNAJMUVANJE
  4.      where $clen/@clenID = $iznajmi/CLEN
  5.      and $iznajmi/AKTIVNA = 'DA'
  6.      return $iznajmi ) descending
  7.      return distinct-values(for $iznajmi in doc("IZNAJMUVANJA.xml")//IZNAJMUVANJE
  8.      where $clen/@clenID = $iznajmi/CLEN
  9.      and $iznajmi/AKTIVNA = 'DA'
  10.      return $clen )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement