Question: Perform the following tasks using MongoDB queries: 1. List only the first 20 names of companies with offices either in California or Texas, ordered by

Perform the following tasks using MongoDB queries:

1. List only the first 20 names of companies with offices either in California or Texas, ordered by the number of employees and sorted largest to smallest.

2. Perform the following tasks using the MongoDB aggregation pipeline:

  1. Design and implement a pipeline to show the total number of employees by state for all companies that have offices in the United States.
  2. Design and implement a pipeline to show the names, total number of funding rounds, and average amount of money raised from funding rounds for companies that have funding rounds data, excluding those that do not. Show only the top 10 by average amount raised.

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!