Question: Important read: For each question you must provide a screen shot which CLEARLY shows the command and the results. Create a collection called employees Insert

Important read: For each question you must provide a screen shot which CLEARLY shows the command and the results.
Create a collection called employees
Insert the following documents in the collection Employees. You will have three fields, employeeid,
name and title and they contain the values listed below. Enter these values using the InsertOne
command. You will need to issued the command twice, once for document 1 and once for document
Question 2:
Print the above inserted documents
Question 3:
Add the following documents to the collection using the insertMany command
Show that all documents have been included
Question 4:
Update the title for Lawson, employeeid 4 to "Senior Clerk"
Show that the document has been updated
Update the title for all data in which title is supervisor. Change the title from "supervisor" to "chief
supervisor"
show that the document has been updated
Question 5:
Delete the document for Michaels employeeid 6
Show that the document has been updated
Question 6:
Display the entire list in descending order
Display the entire list in ascending order
Question 7:
Search the title field for the word "manager" at the beginning of the field title
Search the title field for the word "clerk" anywhere in the field title
Important read: For each question you must

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 Programming Questions!