Question: Software Requirement: . MongoDB Community Server 4.4 or higher Mongo Shell or Internet Browser 2. Remove all the Reporting To field in employees collection where

 Software Requirement: . MongoDB Community Server 4.4 or higher Mongo Shell

Software Requirement: . MongoDB Community Server 4.4 or higher Mongo Shell or Internet Browser 2. Remove all the "Reporting To" 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 "President" 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 1234567" (note: +1 value should depend on their rank number). Procedures: "_id" : 1, { 1. Using Mongo shell, create a database named MongoLab1 and insert the documents below into the employees collection. { id: 1 Name: "Steve Badiola", Salary: 16,099.55, Position: "President" Rank: 1 Reporting To: null }, { "Name":"Steve Badiola", "Salary" : 21599.55, "Position": "President", "Rank": 1, "contact": { "email" : "steve.badiola.gov.ph", "phone" : "+1 1234567" _id" : 4 "Name": "lan Tayao", "Salary" : 18000 "Position": "Treasurer", "Rank":4, "Reporting To": [ "Secretary" -Vice-President", "President" 1 "contact": { "email" : "ian.tayao@gov.ph", "phone" : "+4 1234567" } { id: 2 Name: "Jamir Garcia", Salary: 14,567.12 Position: "Vice-President" Rank: 2 Reporting To: [President] } "_id":2 "Name":"Jamir Garcia", "Salary" : 19567.12, "Position": "Vice-President", "Rank" : 2, "Reporting To": 1 "President" } }, { "contact": { "email" : "jamir.garcia@gov.ph", "phone" : "+2 1234567" id: 3 Name: "Reg Rubio", Salary: 13, 891.22, Position: "Secretary" Rank: 3 ReportingTo: (Vice-President] { }, { id: 4 Name: "lan Tayao", Salary: 13,000, Position: "Treasurer" Rank: 4 ReportingTo: [Secretary, Vice-President] "_id":3, "Name" : "Reg Rubio", "Salary" : 18891.22, "Position": "Secretary", "Rank": 3, "Reporting To": [. "Vice-President", "President" } ] "contact": { "email" : "reg.rubio@gov.ph", "phone" : "+3 1234567" }

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!