Question: 1) Create a MongoDB database called Seneca 2) Create a single document in a collection called student with the following information. Note: the date format

1) Create a MongoDB database called "Seneca" 



2) Create a single document in a collection called "student" with the following information. Note: the date format is month/day/year:

 

student F name = John student L name = Smith DOB = 02/05/2001

 



3) Create multiple documents with a single command to add the following information. Use an embedded document for the marks:

student F name = John student L name = Simpson DOB = 03/24/2001 marks DBS311 = 75 SQL710 = 81 DBS211 = 87

student F name = Jane student L name = Doe DOB = 05/16/2001 marks DBS311 = 85 SQL710 = 79 DBS211 = 81

student F name = Larry student L name = Smith DOB = 07/26/2000 marks DBS311 = 82 SQL710 = 84 DBS211 = 77

 

student F name = put your first name here student L name = put your last name here DOB = put your DOB marks      DBS311 = put what mark you expect to get here      SQL710 = 79      DBS211 = put what your mark was here

 



4) Create a statement that will update the first student you entered into the collection (John Smith) with the following marks:

DBS311 = 89 SQL710 = 82 DBS211 = 91



5) Create a statement that will list all students with a mark greater than or equal to 80 in DBS211. Display the following information only:

student F name student l name and the mark for DBS211.

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