Answered step by step
Verified Expert Solution
Question
1 Approved Answer
On your computer, go to this tutorial to study the basic MongoDB CRUD operations: https://docs.mongodb.com/manual/crud/ Open our lab MongoDB collection at: https://mongoplayground.net/p/xxyyMDsySoJ The collection is
- On your computer, go to this tutorial to study the basic MongoDB CRUD operations: https://docs.mongodb.com/manual/crud/
- Open our lab MongoDB collection at: https://mongoplayground.net/p/xxyyMDsySoJ
- The collection is visible in the "Configuration" column.
- In the "Query" column in the middle of the page, write queries to solve the following questions (you may need to learn some of the MongoDB Operators https://docs.mongodb.com/manual/reference/operator/). For each question, you must include the query command as text and the result screen shot in your submission.
- Find all employees whose salary is higher than 500.
- Update the salary of the employee whose name is "JB" by adding 800 to its current value. (No hardcoded new value. Hint: use $inc)
- Add a new field phone to document with name "RS" and set phone value as "6145555555". (Hint: use $set)
Task 2: Briefly answer the following questions:
- What are the major differences between MongoDB and relational databases?
- What type of situation using MongoDB is better than relational databases? Why? Provide example to support your argument.
- What type of situation using relational databases is better? Why? Provide example to support your argument.
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