Question: db.inventory.insertMany ( [ { item: journal, qty: 25, size: { h: 14, w: 21, uom: cm }, status: A }, { item: notebook, qty: 50,

 db.inventory.insertMany ( [ { item: "journal", qty: 25, size: { h:

db.inventory.insertMany ( [ { item: "journal", qty: 25, size: { h: 14, w: 21, uom: "cm" }, status: "A" }, { item: "notebook", qty: 50, size: { h: 8.5, w: 11, uom: "in" }, status: "A" }, { item: "paper", qty: 100, size: { h: 8.5, w: 11, uom: "in" }, status: "D" }, { item: "planner", qty: 75, size: { h: 22.85, w: 30, uom: "CM" }, status: "D" }, { item: "postcard", qty: 45, size: { h: 10, w: 15.25, uom: "cm" }, status: "A" } ]); Given the table above. Write the query for MongoDB to: Retrieve all documents from the inventory collection where status equals either "A" or "D

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!