Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

After completing the textbook reading and reviewing the module resources, complete the following tasks using the MongoDB shell. 1. Using the mongoimport tool, create the

image text in transcribed

After completing the textbook reading and reviewing the module resources, complete the following tasks using the MongoDB shell. 1. Using the mongoimport tool, create the database "companies" by loading the documents found in the companies.json" file into the "research collection. This file is located in the "/usr/local/datasets/" directory in Apporto. 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 your statements and the results as evidence. 2. Perform the following tasks using MongoDB queries: a. List only the first 20 names of companies founded after the year 2010, ordered alphabetically. b. List only the first 20 names of companies with offices in either California or Texas, ordered by the number of employees and sorted largest to smallest. Provide screenshots of your statements and the results as evidence. 3. Design and implement a MongoDB aggregation pipeline to show the total number of employees by state for all companies that have offices in the United States. Provide screenshots of your statements and the results as evidence. After completing the textbook reading and reviewing the module resources, complete the following tasks using the MongoDB shell. 1. Using the mongoimport tool, create the database "companies" by loading the documents found in the companies.json" file into the "research collection. This file is located in the "/usr/local/datasets/" directory in Apporto. 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 your statements and the results as evidence. 2. Perform the following tasks using MongoDB queries: a. List only the first 20 names of companies founded after the year 2010, ordered alphabetically. b. List only the first 20 names of companies with offices in either California or Texas, ordered by the number of employees and sorted largest to smallest. Provide screenshots of your statements and the results as evidence. 3. Design and implement a MongoDB aggregation pipeline to show the total number of employees by state for all companies that have offices in the United States. Provide screenshots of your statements and the results as evidence

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Company Accounting

Authors: Ken Leo, Jeffrey Knapp, Susan McGowan, John Sweeting

11th Edition

0730344770, 9780730344773

More Books

Students also viewed these Accounting questions

Question

Understand the requirements for diversity management

Answered: 1 week ago

Question

How would a TM strategy help this company?

Answered: 1 week ago

Question

Outline key ideas in human resource accounting

Answered: 1 week ago