reopened by
693 views
0 votes
0 votes

Consider the following XML DTD describing course information in a university:
 

<!ELEMENT Univ (Course+, Prof+)>
<!ELEMENT Course (Title, Eval*)>
<!ATTLIST Course Number ID #REQUIRED Instructor IDREF #IMPLIED>
<!ELEMENT Title (#PCDATA)>
<!ELEMENT Eval (#PCDATA)>
<!ATTLIST Eval Score CDATA #REQUIRED>
<!ELEMENT Prof EMPTY>
<!ATTLIST Prof Name ID #REQUIRED Teaches IDREF #IMPLIED>


What is returned by the following XQuery?

let $as := / /@Score
for $c in /Univ/Course[Eval]
let $cs := $c/Eval?@Score
where min($cs) > avg($as)
return $c

  1. The professor with the lowest course evaluation
  2. Professors who have all their course evaluations above the university average
  3. The course with the lowest evaluation
  4. Courses with all evaluations above the university average
reopened by

Please log in or register to answer this question.

Answer:

Related questions

1 votes
1 votes
1 answer
3
Ishrat Jahan asked Nov 1, 2014
1,638 views
$x + y/2 = 9$$3x + y = 10$What can be said about the Gauss-Siedel iterative method for solving the above set of linear equations?it will convergeIt will diverseIt will...
1 votes
1 votes
1 answer
4
Ishrat Jahan asked Nov 1, 2014
1,460 views
x + y/2 = 93x + y = 10The value of the Frobenius norm for the above system of equations is$0.5$$0.75$$1.5$$2.0$