Question: Task 1 ( 4 . 0 marks ) Implementation of BSON documents Consider the following conceptual schema of a sample database that contains information about

Task 1(4.0 marks)
Implementation of BSON documents
Consider the following conceptual schema of a sample database that contains information about a bank, the bank-accounts administered, the owner's bank account, and the transactions made.
Consider the following domain specification of an application and its conceptual schema:
An airline publishes a PublishedFlights on a recurring basis. The flightNumber uniquely identifies each PublishedFlight for an Airline. Each PublishedFlight has one or more FlightDetail, each from some origin Airport to a destination Airport.
An airport has an IATA (International Air Transport Association) code and a name. For example, the name of Singapore's airport is Singapore Changi Airport, and its IATA code is SIN.
(1) Create a new MongoDB database with a name that is the same as your UOW student number.
(2) Create a collection with a name the same as the prefix of your UOW email address, e.g., sjapit.
(3) Insert into the collection the documents whose contents are consistent with the conceptual schema given above. It is important that your documents represent the hierarchical structures in the best possible way. You do not need to enforce all identification constraints determined in the conceptual schema. Insert at least two airlines, two published-flight, three flight-detail, and three airports involving the airlines; each airline publishes two published-flight, and each published-flight has two flight details. You can use the following IATA code and the airport names for your airport entries.
 Task 1(4.0 marks) Implementation of BSON documents Consider the following conceptual

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!