question archive MongoDB QUESTIONS!   1) Create a MongoDB database called "seneca"     2) Create a single document in a collection called "student" with the following information

MongoDB QUESTIONS!   1) Create a MongoDB database called "seneca"     2) Create a single document in a collection called "student" with the following information

Subject:Computer SciencePrice: Bought3

MongoDB QUESTIONS!

 

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:

studentFname = John
studentLname = 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:

studentFname = John
studentLname = Simpson
DOB = 03/24/2001
marks
          DBS311 = 75
          SQL710 = 81
          DBS211 = 87

studentFname = Jane
studentLname = Doe
DOB = 05/16/2001
marks
          DBS311 = 85
          SQL710 = 79
          DBS211 = 81

studentFname = Larry
studentLname = Smith
DOB = 07/26/2000
marks
          DBS311 = 82
          SQL710 = 84
          DBS211 = 77

studentFname = put your first name here
studentLname = 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:

studentFname
studentlname
and the mark for DBS211

pur-new-sol

Purchase A New Answer

Custom new solution created by our subject matter experts

GET A QUOTE