To help you verify your work before submitting, the author with the fewest comments is Mariela Sherer and she commented times. Friday, 8 September Week 5: To be clear, each student’s average includes only exams and homework grades. A city might have multiple zip codes. Start by downloading the handout zip file for this problem. Prefered Cities to Live! For this problem, we have used a subset of the data you previously used in zips.

Also, you will need a filtering step to get rid of all documents where the city does not start with the select set of initial characters. This involves calculating an average for each student in each class of all non-quiz assessments and then averaging those numbers to get a class average. Different states might have the same city name. Please choose your answer below for the most prolific comment author:. Prefered Cities to Live! If you notice that while importing, there are a few duplicates fear not, this is expected and will not affect your answer. To be clear, each student’s average includes only exams and homework grades.

You will be using the zip code collection data set, which you will find in the ‘handouts’ link in this page. Different states might have the same city name. Your task is to calculate the class with the best average student performance.

You must figure out the GPA that each student has achieved in a class and then average those numbers to get a class average. Also, you will need a filtering step to get rid of all documents where the city does not start with the select set of initial characters. After that, you just mpngodb to sort.

Please use the Aggregation pipeline anseer solve this problem. Note that not all students in the same class have the same exact number of assessments. We will be using a data set similar to ones we’ve used before. Now use the aggregation framework to calculate the author with the greatest number of comments. Choose the answer below.

## Mongodb M101J Homework 1 1 Answers

In this problem you will calculate the number of people who live in a zip code in the US where the city starts with one of the following characthers:. A city might have multiple zip codes. At the end I just want to say if you want to learn mongoDB, First practice with youself.

Try for your self. Download the handout and mongoimport. Check all that apply. This involves calculating an average for each student in each class of all non-quiz assessments and then averaging those numbers to get a class average. Please choose your answer below for the most prolific comment author:. You will need to probably change your projection to send more info through than just that first character. The answer for CT and NJ using this data set is Then import into your blog database as follows:.

# [SOLUTION] WEEK 5 : INDEXES AND PERFORMANCE : MJS: MONGODB FOR DEVELOPERS

Once you’ve generated your aggregation query and found your answer, select it from the choices below. The documents look like this: Some students have three monogdb assignments, etc. Import it into your mongod using the following command from the command line:.

For this set, there are only documents and zip codesand all of them are in New York, Connecticut, New Jersey, and California.

To be clear, each student’s average includes only exams and homework grades. For this problem, we have used a subset of the data you previously used in zips.

Friday, 8 September Week 5: Please round the answer to a whole number. For example, to extract the first character from the city field, you could write this pipeline:. Using the aggregation framework, calculate the sum total of people who are living in a zip code where the city starts with one of those possible first characters.

If you notice that while importing, there are a few duplicates fear not, this is expected and will not affect your answer. Prefered Cities to Live!