Write a xquery which returns all concert titles

Assignment Help PL-SQL Programming
Reference no: EM1370541

1. Consider XML data given by the following DTD:
<!ELEMENT broadway ((theater | concert | opera)*)>
<!ELEMENT theater (title, address, date, price*)>
<!ELEMENT concert (title, type, date, price*)>
<!ELEMENT opera (title, date, price*)>
Elements that are not defined are PCDATA.

(a) Write a XPath expression that returns all titles in the XML document
(b) Write a XQuery that returns the addresses of all theaters that have some tickets under $35 on 2010-01-01 and the titles of their show on that night.
(c) Write a XQuery that returns all concert titles whose type is chamber orchestra where the average ticket price is at least $50.
(d) Write a XQuery that based on the above XML document constructs a new XML document with the following structure:

<!ELEMENT groupedByDate (day*)>
<!ELEMENT day (date, show*)>
<!ELEMENT show (title, price*)>

 

Verified Expert

In this assignment we have discussed the xquery as per the questions. We have discussed all the required all the details as per the queries in the system.

Reference no: EM1370541

Questions Cloud

Show the corporate scandals and power shifts : Explain the shift in corporate power from the CEO to other stakeholders and impact on corporate governance
Difference between monopoly and oligopoly : Describe the difference between a monopoly and an oligopoly, and a cartel and provide an example of the monopoly, an oligopoly, and a cartel and write down the welfare effects of monopolies and oligopolies.
Write select statement to return those rows with due balance : Write SELECT statement which returns those rows with the balance due greater than 1000. Sort result set by InvoiceTotal, with largest invoice first.
Questions based on corporate governance : Recent corporate governance concepts have redefined the responsibilities of management to ensure greater protection and accountability of management to the relevant stakeholders.
Write a xquery which returns all concert titles : Write a XQuery which returns all concert titles whose type is chamber orchestra where average ticket price is at least $50.
Determine the size in aggregate expenditure line : Suppose the simple spending multiplier equals 10. Estimate the size and direction of any shifts in the aggregate expenditure line, the level of real GDP demanded,
What is the monopolist profit maximizing level of output : Assume a monopolist faces the following demand curve: P = 180 - 4Q. Marginal cost of production is stable and equal to $20, and there're no fixed costs. What is the monopolist's profit maximizing level of output?
Write algorithm which divides n objects of u into k clusters : Suggest the algorithm which divides n objects of U into k clusters, making use of MST of a graph. Give a simple argument of correctness and bound on the running time of the algorithm you are proposing.
How market structure affects market performance : Describe how market structure affects market performance and conduct. Recognize three types of government regulation that aid to enhance market performance

Reviews

inf70541

8/22/2019 3:04:40 AM

Assignment properly constructed as per the requirement. Quality of the assignment is good. Timely delivered the work by you guys. I will definitely use your services again.

inf70541

8/22/2019 3:02:52 AM

The requirement of assignment is to provide the work in an XML document. You have to provide the calculations as per the asked requirement. Assignment structure should be properly followed as per the requirement.

Write a Review

PL-SQL Programming Questions & Answers

  Create a database model

Create a database model and Submit the table creation statements for the Database Model.

  Write pl-sql procedures and functions

Write PL/SQL procedures and functions to populate and query that database

  Sql questions

Write a query to display using the employees table the EMPLOYEE_ID, FIRST_NAME, LAST_NAME and HIRE_DATE of every employee who was hired after to 1 January, 1995.

  Run the lab_03_01.sql script

Run the lab_03_01.sql script in the attached file to create the SAL_HISTORY table. Display the structure of the SAL_HISTORY table.

  Write sql queries

Write a query to display the last name, department number, and salary of any employee whose department number and salary both match the department number and salary of any employee who earns a commission.

  Explaining sql insert statement to insert new row in cds

Write down a SQL insert statement to insert new row in "CDS" table.

  Write down name of actors in ascending order

Write down actors (or actress, your choice, but not both) who have won at least two (2) Academy Awards for best actor/actress. Provide the actor name, movie title & year. Order the result by actor name."

  What is an sql injection attack

What is an SQL injection attack? Explain how it works, and what precautions must be taken to prevent SQL injection attacks.What are two advantages of encrypting data stored in the database?

  Determine resonant frequency in series rlc resonant circuit

Given the series RLC resonant circuit in the figure, operating at variable frequency, determine: The resonant frequency ω o ,  The circuit’s quality factor Q , The cut-off frequencies, f 1  & f 2  and the bandwidth BW

  Query that uses cube operator to return lineitemsum

Write summary query which uses CUBE operator to return LineItemSum (which is the sum of InvoiceLineItemAmount) group by Account(an alias for AccountDesciption).

  Query to show customers were missing for existing orders

As DBA, your manager called a meeting and asked why there are so many orders for customers that don't exist in the customer table. Write query which would shows which customers were missing for existing orders. Use a join or a subquery.

  Sql query into a relational algebra statement

Turn this SQL query into a relational algebra statement? SELECT Request.reqfor, Ordering.invamt, Ordering.invnbr, Ordering.invdat

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd