Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question Three (25 marks) Use the sample below from the incident document database collection to answer the following questions: (assume the database name is: db

image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
Question Three (25 marks) Use the sample below from the incident document database collection to answer the following questions: (assume the database name is: "db" and the collection name is: 'event'). Explain the answer in your own words. "event_id":"EV141", "details": { "type_code" : "COMP", "name":"Painting competition", "category":"Children below 10 years old" } "event_startdate":"ISODate("2021-11-21T08:00:00z"), "event_enddate":"ISODate("2021-11-21T10:00:002") "coordinators": [ {"civil_id":"600","person_name":"amani"}, {"civil_id":"1100","person_name":"arwa"} 1, "event_location":"UAE" } "coordinators":1 ("civil_id":"600","person_name":"amani"), ("civil_id":"1100","person_name":"arwa") 1. "event_location":"UAE" ) a Find all documents in the event collection b. Find any document from the event collection where the event location is UAE. c. Find the event documents in which coordinator with civilid 1100 is involved. d. Find the number of events with the event type code 'COMP'In the collection e. Find all the details of events where the end date is before 30-10-2021 [3 marks) 16 Marks) 16 marks) 10 marks) (6 marks) Question Three (25 marks). Use the sample below from the incident document database collection to answer the following questions: (assume the database name is: "db" and the collection name is: event'). Explain the answer in your own words. "event_id":"EV141", "details": { "type_code":"COMP", "name":"Painting competition", "category":"Children below 10 years old" } "event_startdate":"ISODate("2021-11-21T08:00:00z"), "event_enddate": "ISODate("2021-11-21T10:00:00z") "coordinators": [ {"civil_id": "600","person_name":"amani"}, {"civil_id":"1100","person_name":"arwa"} 1, "event_location":"UAE" } "coordinators": ("civil_id":"600","person_name":"amani"), ("civil_id":"1100","person_name":"arwa") 1. "event_location":"UAE" > a. Find all documents in the event collection b. Find any document from the event collection where the event location is UAE 0 Find the event documents in which coordinator with civilid 1100 is involved. d. Find the number of events with the event type code 'COMP' in the collection e. Find all the details of events where the end date is before 30-10-2021 13 marks) 16 Marks) 15 marks) 10 marks) 16 marks)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database And Expert Systems Applications 31st International Conference Dexa 2020 Bratislava Slovakia September 14 17 2020 Proceedings Part 1 Lncs 12391

Authors: Sven Hartmann ,Josef Kung ,Gabriele Kotsis ,A Min Tjoa ,Ismail Khalil

1st Edition

303059002X, 978-3030590024

More Books

Students also viewed these Databases questions

Question

4. Evaluation is ongoing and used to improve the system.

Answered: 1 week ago

Question

6. Effectively perform the managers role in career management.

Answered: 1 week ago