Question: Create following table in MongoDB using appropriate command (4 Marks):- 1. Shoes ModelNo Brand Color Price Size Height Width M2101 Nike Red, Black 100 10cm

Create following table in MongoDB using appropriate command (4 Marks):- 1. Shoes ModelNo Brand Color Price Size Height Width M2101 Nike Red, Black 100 10cm 1.5cm M202 Adidas Blue 80 8cm 2cm M303 Puma Red, Black, Neon 75 8cm 2cm M404 Adidas Orange 25 10cm 3cm 2. Update Brand name from Adidas to Puma in MongoDB for the very first matching record. (2) 3. Insert one more brand info of your choice. (2) 4. Print all shoes which are available in blue color and Width 2cm. (2) 5. Print all shoes which are available either in Blue or Neon Color using $in expression. (2) [please note: Query will be graded zero if $in is not used for criteria matching.] 6. Print only those brands of shoes which are in price range from 20(inclusive) to 80(inclusive). (2) 7. Delete all records for Adidas brand from this collection. (2) 8. Update Height for Nike Shoes to 12cm. (2) 9. Drop Shoes collection. (2 Marks) Once finished take screenshot of all outputs, save the commands in one file and upload for marks. [Please Note - Without Output screenshot Marks would be reduced to half]

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!