To be clear, each student’s average includes only exams and homework grades. In this problem you will calculate the number of people who live in a zip code in the US where the city starts with a digit. Download the handout and mongoimport. A city might have multiple zip codes. The documents look like this: After that, you just need to sort. Check all that apply.

It has been tested under Pymongo 2. Don’t include their quiz scores in the calculation. Please use the Aggregation pipeline to solve this problem. You must figure out the GPA that each student has achieved in a class and then average those numbers to get a class average. You will need to probably change your projection to send more info through than just that first character. Please choose your answer below for the most prolific comment author:.

Please calculate the average population of cities in California abbreviation CA and New York NY taken together with populations over 25, After that, you just need to sort.

Note that are three commands.

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

Friday, 8 September Week 5: Let’s suppose you have a five member replica set and want to assure that writes are committed to the journal and are acknowledged by at least 3 nodes before you proceed forward. The answer for CT and NJ using this data set is If you imported it correctly, you can go to the test database in the mongo shell and conform that.

After that, you just need to sort. Also, you will need a filtering step to get rid of all documents where the city does not start with a digital To be clear, each student’s average includes only exams and homework grades.

The answer for CT and NJ using this data set is You need to group twice to solve this problem. For purposes of keeping the Hands On shell quick, we have used a subset of the data you previously used in zips.

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. Download the handout and mongoimport.

You have a sharded system with three shards and have sharded the collections “students” in the “school” database across those shards. There is also an issue with some versions of MongoDB 3.

## Agentur für webbasierte Software aus Hamburg

Different states might have the same city name. For example, to extract the first character from the city field, you could write this pipeline:.

You must figure out the GPA that each student has achieved in a class and then average those numbers to get a class average. For this problem, assume that a city name that appears in more than one state represents two separate cities.

The documents look like this: In this assignment you will use the aggregation framework to find the most frequent author of comments on your blog Type m01p following commands into the mongo shell: You will need to probably change your projection to send more info through than just that first character.

You can type rs. 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. If you notice that while importing, there are a few duplicates fear not, this is expected and will not affect your answer.

## Mongodb M101J Homework 1 1 Answers

Try for your self. Now use the aggregation framework to calculate the author with the greatest number of comments.

Your task is to calculate the class with the best average student performance. Please choose your answer below for the most prolific comment author:.

This is why there are only documents and zip codesand all of them are in New York, Connecticut, New Jersey, and California. Some students have three homework assignments, etc.

Check all that apply. 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:. Posted by Unknown at 6: