Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Task 2 ( 2 . 0 marks ) Implement the following data manipulations on a collection of documents transport. ( 1 ) Remove a mechanic

Task 2(2.0 marks)
Implement the following data manipulations on a collection of documents transport.
(1) Remove a mechanic John Fox.
(2) Remove information about a date of birth (dob) from a description of employee number 11.
(3) Remove information about a trip number 7 performed by an employee number 11.
(4) Add information about a new trip performed by an employee number 11. At the moment we only know a trip number 999 and registration of truck used PKR786.
(5) Change a date of a trip number 15 performed by an employee number 11 to 28 SEP-18.
Very important
Implementation of each data manipulation must consist of the invocations of two methods:
print('(n) db.transport.data-manipulation-method( data manipulation)');
db.transport.data-manipulation-method( data manipulation );
where n is a number of a data manipulation as above, i.e.1 or 2 or ... or 5.
A method print() prints a text of a data manipulation into a report. A method datamanipulation-method processes a data manipulation and it includes the results into a report from the processing of a script solution2.js.
Before generation of a report it is strongly recommended to "refresh" a collection of the documents transport with the methods db.transport.drop() and load('transport.js').
image text in transcribed

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

XML Data Management Native XML And XML Enabled Database Systems

Authors: Akmal Chaudhri, Awais Rashid, Roberto Zicari, John Fuller

1st Edition

0201844524, 978-0201844528

More Books

Students also viewed these Databases questions

Question

Explain the serial-position curve and why it occurs.

Answered: 1 week ago