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

  Write sql statement to display first-last name of students

Write a SQL statement to display the First and Last name of students who have the Status greater than 1 and less than 10. Use BETWEEN.

  Write pl-sql block to display the last name of people

Write a PL/SQL block that displays the last name and salary of the following people. Each of these can be done separately as PL/SQL, first to test and get the output lines then encapsulated in the procedure.

  Sql statement which select names and owners of great danes

Write SQL statement which would select each of the following: names and owners of all Great Danes and all attributes of poodles whose balance is no greater than $50.

  Write sql statement-display major of student-no duplications

Write a SQL statement to display the Major of the student with no duplications. Write a SQL statement to display the First and Last name of students who live in the Zip code 88888.

  Create report using wizard or based on sql query

Create a report using the wizard or based on an SQL query that that shows Courses that instructors are approved to teach. Show Course Number, First Name, and Last Name of Instructor.

  Write command to list all the employees in year

Write the command to list all the employees hired in 2003 and 2004. Sort the rows by the hire_date column in descending order.

  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.

  Pl-sql block to display last name and salary

Write a PL/SQL block that displays the last name and salary of the following people. Each of these can be done separately as PL/SQL, first to test and get the output lines then encapsulated.

  Explaining sql insert statement to insert new row in cds

Write down a SQL insert statement to insert new row in "CDS" 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.

  Write sql statement to create view

Write a SQL Statement to create a View called vwEmployeeTerritories that will do the following: Return all Employees and their Territories (use INNER JOIN).

  Write down sql needed to create employee table

Write down SQL needed to create employee table containing the following data: employeeID, text, length of 5, primary key lastName, text, length of 25

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