1) Consider the following DTD. All unspecified elements are #PCDATA. ... ]> Write the following queries in XQuery. Assume Last names of authors are unique. (a) List all books authored by Ullman. (b) List articles published in Vol. 32 No. 2 of ACM Transactions on Database Systems. (c) List journals that published an article on XML in 2001 (that is, “XML” appears in the title of the article). (d) List authors that have published a book in 2001 and another book in 2003. (e) List publishers, and for each publisher list the books they have published as subelements. Choose appropriate tags for your output. (f) List every author, and for each author list the number of articles he/she published in 2001. Choose appropriate tags for your output.   I want answers for D,E,F i have answers for A,B,C for reference I am posting the entire questions with all subparts but i need answer for subparts d,e,f.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
icon
Concept explainers
Question

1)
Consider the following DTD. All unspecified elements are #PCDATA.
<!DOCTYPE bibliography [
<!ELEMENT book (title,author+,year,publisher,place?)>
<!ELEMENT article (title,author+,journal,year,number,volume,pages?)>
<!ELEMENT author (last_name, first_name)>
...
]>
Write the following queries in XQuery. Assume Last names of authors are unique.
(a) List all books authored by Ullman.
(b) List articles published in Vol. 32 No. 2 of ACM Transactions on Database Systems.
(c) List journals that published an article on XML in 2001 (that is, “XML” appears in the title of the
article).
(d) List authors that have published a book in 2001 and another book in 2003.
(e) List publishers, and for each publisher list the books they have published as subelements. Choose
appropriate tags for your output.
(f) List every author, and for each author list the number of articles he/she published in 2001. Choose
appropriate tags for your output.

 

I want answers for D,E,F i have answers for A,B,C for reference I am posting the entire questions with all subparts but i need answer for subparts d,e,f.

Expert Solution
steps

Step by step

Solved in 4 steps

Blurred answer
Knowledge Booster
Concepts in designing Database
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education