Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Id of the exercise, the students should be able to: insert, read, update, and delete a document data; and Use various operator on querying documents.

image text in transcribed
image text in transcribed
Id of the exercise, the students should be able to: insert, read, update, and delete a document data; and Use various operator on querying documents. re Requirement: MongoDB Community Server 4.4 or higher Mongo Shell or Internet Browser ures: g Mongo shell, create a database named MongoLab1 and insert the documents w into the employees collection. 2. Remove all the "ReportingTo" field in employees collection where its value is null. 3. Using the $inc operator, update all the documents by increasing their salary by 5000. 4. Update the document of "Reg Rubio" and "lan Tayao" by adding the "Presidenf" to their Reporting field. 5. Find the document where their salary is above " 21,000.00 ". 6. Find the document where their name starts with "S" and "R". 7. Find the document that is not reporting to the "President". 8. Update all the document by adding a sub-document named "contact" with a key-value, "email": "name@gov.ph" (Example: steve.badiola@gov.ph) and "phone": "+1 123456T" (note: +1 value should depend on their rank number)

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_2

Step: 3

blur-text-image_3

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 Design Query Formulation And Administration Using Oracle And PostgreSQL

Authors: Michael Mannino

8th Edition

1948426951, 978-1948426954

More Books

Students also viewed these Databases questions

Question

=+d) What assumption must you make in part c?

Answered: 1 week ago

Question

Question 1 (a2) What is the reaction force Dx in [N]?

Answered: 1 week ago

Question

assess the infl uence of national culture on the workplace

Answered: 1 week ago