Create the list of all professors who ever taught MAT123. The information must include all attributes available from the Professor relation.

Using the document structure described in Exercise 15.23, formulate the following queries in XQuery:



{
FOR $p IN doc("http://xyz.edu/professor.xml")//tuple
WHERE doc("http://xyz.edu/teaching.xml")
//tuple[ProfId/@value=$p/Id/@value
and CrsCode/@value="MAT123"]
RETURN $p
}

Computer Science & Information Technology

You might also like to view...

Answer the following statements true (T) or false (F)

1. A Label is a component that allows the user to input text from the keyboard. 2. If an event occurs and there is no event handler to respond to that event, the event is ignored. 3. Some of the common GUI components are classes, objects, methods, and fields. 4. When working with a command line interface, if the command is not entered exactly right, it will not work.

Computer Science & Information Technology

Linux utilizes what two different wildcard characters at the command line?

A. and B. | C. * D. ?

Computer Science & Information Technology