Answered step by step
Verified Expert Solution
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.
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started