MongoDB - Querying Collections - Exercises

Try to come up with solutions for the following exercises.

  • Get Number of records from orderItems
  • Get documents for given order_item_order_id from orderItems
  • Get documents for given order_item_order_id from orderItems and sort by order_item_subtotal
  • Get the employee details who does not have the commission
  • Get all the employee details working under “Den Raphaely”
  • Get all the employee details who belong to department 10