Question: Books XQuery Lab Consider an XML document having the following DTD: Write XMLQuery queries to answer the following: 1.Find all the book titles published by

Books XQuery Lab
Consider an XML document having the following DTD:
         
Write XMLQuery queries to answer the following:

1.Find all the book titles published by 'Addison-Wesley'. Output should be of the form title1 ....

2.Find all the books (their year and title) published between 1991 and 1995. Output should be of the form: title1 ....

3.Find all the authors of books that are priced less than $50. Output should be of the form lastname1 firstname1 ....

4.Find all the books (their year and title) written by authors whose last name is 'Buneman'. Output should be of the form: title1 ....

5.Find all the authors of books that were published before 1994. Output should be of the form lastname1 firstname1 ....

Note: Your queries should reference the xml document: xxxxxx XQuery References: http://www.brics.dk/~amoeller/XML/querying/ http://www.perfectxml.com/articles/xml/xquery.asp

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!