1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
xxMikexx [17]
3 years ago
11

Using the XML Document below (library with books), define the following queries in XQuery: (a) Give the titles of all Books sort

ed by Price. (b) How many books were written by Abiteboul? (c) Give for each author, the number of books he has written.
Computers and Technology
1 answer:
Softa [21]3 years ago
3 0

Answer:

Explanation:

a)use order by clause for sorting

for $x in doc("books.xml")/bib/book order by xs:float($x/price) return $x/title (default sorted in ascending order)

or

for $x in doc("books.xml")/bib/book order by xs:float($b/price) descending  return $b/title (sorted in descending order)

b)doc("books.xml")//book[author = 'Abiteboul']

c)for $x in distinct-values(doc("bib.xml")/bib/book/author)

return <res>

<name>{$x}</name>

<count>

 {count (doc("bib.xml")//book[exists(indexof(author,$x))]) }

</count>

<res>

You might be interested in
are you in active recovery from a substance use disorder (addiction)? active recovery is defined as being free from an alcohol o
salantis [7]

No, I am not in active recovery from a substance use disorder (addiction). Active recovery is defined as being free from an alcohol or other drug use disorder or no longer using alcohol or other drugs is a true statement.

<h3>What does it mean to be in addiction recovery?</h3>

The statement  implies that a person is working very hard to be  successful in handling their addiction and getting back control of your life.

Note that it is not an easy road but one can overcome. Therefore, my response is No, I am not in active recovery from a substance use disorder (addiction) because i do not drink it. Active recovery is defined as being free from an alcohol or other drug use disorder or no longer using alcohol or other drugs is a true statement.

Learn more about Active recovery from

brainly.com/question/28027699

#SPJ1

4 0
1 year ago
Krystal recorded her times for all her cross-country meets this season. To sort her data showing the lowest times first, what wi
devlian [24]
Sort ascending would be the correct one, since you are going from the lowest value to the highest
3 0
3 years ago
Read 2 more answers
Complete the statement using the correct term.
eduard

Answer:

Pixels

Explanation:

3 0
3 years ago
What will be the output of the following code?
mojhsa [17]

Answer:

it schold be C = False di True True

5 0
3 years ago
At regular intervals the AP in an infrastructure network or wireless device in an ad hoc network sends a ____ frame both to anno
pshichka [43]

Answer:

beacon

Explanation:

At regular intervals the AP in an infrastructure network or wireless device in an adhoc network sends a beacon frame both to announce its presence and to provide the necessary information for other devices to join the network.

5 0
3 years ago
Other questions:
  • Write the method public static doublell quizAverages (double (1 scores). which takes a 2D array of doubles that represent quiz s
    11·1 answer
  • Forms are used to a provide a more user-friendly way to work with data in tables
    14·1 answer
  • The position of a _____ is a nontechnical position responsible for defining and implementing consistent principles for setting d
    15·1 answer
  • In presentation software, what is the way that text and pictures are arranged on a page called?
    10·1 answer
  • American company Software Unlimited is planning to expand its operations to the Bangor Republic where the group is the primary u
    7·1 answer
  • Chapter 15 Problem 6 PREVENTIVE CONTROLS Listed here are five scenarios. For each scenario, discuss the possible damages that ca
    11·1 answer
  • In Java:
    15·1 answer
  • Es la actividad que posibilita comunicar gráficamente ideas, hechos y valores procesados y sintetizados en términos de forma y c
    11·1 answer
  • How do we Rewrite the following Python code to avoid error. mark=inpt("enter your mark ")
    6·1 answer
  • What would be the effect if the register contained the following values 10011000
    12·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!