Course Solutions Uncategorized (Solved) : Please Need Someone Check Answer Correct First Question Write Xpath Expressions Show Film Q28733057 . . . .

(Solved) : Please Need Someone Check Answer Correct First Question Write Xpath Expressions Show Film Q28733057 . . . .

 

please I need someone to check if my answer are correct ornot

the first question is to write XPath expressions ?

show the film elements with a length longer than that of thefilm ‘SONS INTERVIEW’

here what i wrote

for $f in (@len=//film[title/text()=’SONSINTERVIEW’]/length/@len)
return //film[length >$f]/title/text()

the second question is to write xquary to shw the actors namesand id and the number of films and the film titles

and here the xquary

element actors
{   for $aid infn:distinct-values(//actor/text()/@id)
   let $aname := (//actor[@id=$aid]/text())
   $n_films := count(//film[actor/@id = $aid])
$title:= (//film[actor/@id = $aid]/title)
    order by number($n_films) descending
   return
   element actor
      {   attribute id { $aid},
      element name { $aname }
      element nFilms

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post