mongodb-2
Using the mongoimport tool, load the database “companies†with documents found in the “companies.json†file into the “research†collection. Verify your load by issuing the following queries:
a. db.research.find({“name” : “AdventNet”}) b. db.research.find({“founded_year” : 1996},{“name” : 1}).limit(10)
Provide screenshots of the results as evidence.
2. Perform the following tasks using MongoDB queries:
a. List alphabetically only the first 20 names of companies founded after the year 2010. b. 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.
3. Perform the following tasks using the MongoDB aggregation pipeline:
a. Design and implement a pipeline to show the total number of employees by state for all companies that have offices in the United States. b. 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 raise