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 and once for document
Question :
Print the above inserted documents
Question :
Add the following documents to the collection using the insertMany command
Show that all documents have been included
Question :
Update the title for Lawson, employeeid 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 :
Delete the document for Michaels employeeid
Show that the document has been updated
Question :
Display the entire list in descending order
Display the entire list in ascending order
Question :
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
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
