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)

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

Step: 3

blur-text-image

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, if any, financial support do they provide their students?

Answered: 1 week ago

Question

Why do people confuse correlation with causation?

Answered: 1 week ago