Answered step by step
Verified Expert Solution
Link Copied!

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

  1. On your computer, go to this tutorial to study the basic MongoDB CRUD operations: https://docs.mongodb.com/manual/crud/
  2. Open our lab MongoDB collection at: https://mongoplayground.net/p/xxyyMDsySoJ
  3. The collection is visible in the "Configuration" column.
  4. 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.
    1. Find all employees whose salary is higher than 500.
    2. Update the salary of the employee whose name is "JB" by adding 800 to its current value. (No hardcoded new value. Hint: use $inc)
    3. 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:

  1. What are the major differences between MongoDB and relational databases?
  2. What type of situation using MongoDB is better than relational databases? Why? Provide example to support your argument.
  3. 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

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

Intermediate Accounting

Authors: Kin Lo, George Fisher

Volume 1, 1st Edition

132612119, 978-0132612111

More Books

Students also viewed these Databases questions

Question

What other requirements do they have for admission?

Answered: 1 week ago