Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider the following conceptual schema of a sample database that contains information about a bank, the bank - accounts administered, the owner s bank account,

Consider the following conceptual schema of a sample database that contains
information about a bank, the bank-accounts administered, the owners 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 Singapores 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.IATA Code Airport name
SIN Singapore Changi Airport
HLP Halim Perdana Kusuma Airport Jakarta
CKG Chongqing Jiangbei International Airport
KUL Kuala Lumpur International Airport
DMK Don Muang Airport
STV Surat International Airport
The rest of the values for the other attributes are up to you but must be sensible.
(4) List the contents of the collection created in step (2) and loaded with the documents
in a step (3) in a pretty format.
Save a report from the processing of actions listed above in a file solution1.lst. To create
a "report, you can the contents of Terminal window and it into a file
solution1.lst. The results of all actions must be included in solution1.lst in the same
order as their specifications listed above.

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

Joe Celkos Data And Databases Concepts In Practice

Authors: Joe Celko

1st Edition

1558604324, 978-1558604322

More Books

Students also viewed these Databases questions

Question

Identify how culture affects appropriate leadership behavior

Answered: 1 week ago