You are developing a new page for a website that uses Azure Cosmos DB for data storage. The feature uses documents that have the following format: {           "name": "John",            "city": "seattle" } You must display data for the new page in a specific order. You create the following query for the page: SELECT* FROM People p ORDER BY p.name, p.city DESC You need to configure a Cosmos DB policy to support the query. How should you configure the policy?

Oracle 12c: SQL
3rd Edition
ISBN:9781305251038
Author:Joan Casteel
Publisher:Joan Casteel
Chapter6: Additional Database Objects
Section: Chapter Questions
Problem 5MC
icon
Related questions
Question

You are developing a new page for a website that uses Azure Cosmos DB for data storage. The feature uses documents that have the following format:

{

          "name": "John",

           "city": "seattle"

}


You must display data for the new page in a specific order. You create the following query for the page:

SELECT*

FROM People p

ORDER BY p.name, p.city DESC


You need to configure a Cosmos DB policy to support the query.
How should you configure the policy?

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Form and its Elements
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
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
Publisher:
Cengage Learning