To be clear, each student’s average includes only exams and homework grades. Try for your self. First, let’s confirm your data is intact; the number of documents should be You should see three files at the highest level: Blog User Sign-up and Login Download the handout and unpack it. For this problem, assume that a city name that appears in more than one state represents two separate cities.

Those students achieved a class average of Download the handout and mongoimport. Newer Post Older Post Home. Choose the answer below. The documents look like this:

Crunching the Zipcode dataset Please calculate the average population of cities in California abbreviation CA and New York NY taken together with populations over 25, You will be using the zip code collection data set, which you will find in the ‘handouts’ link in this page.

# MJ Mongodb For Java Developers Homework Answers Week 2

In this problem you will calculate the number of people who live in a zip code in the US where the city starts with mongkdb of the following characthers:.

The templates comprise the view. 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.

Import it into your mongod using the following command from the command line:.

In this assignment you will use the aggregation framework to find the most frequent author of comments on your blog We will be using a data set similar to ones we’ve used before. 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. There is a dump of the mognodb database included in the handouts for the “Creating Documents” lesson.

Newer Post Older Post Home. Note that not all students in the same class have the same exact number of assessments.

For this problem, we have used a subset of the data you previously used in zips. Download the handout and mongoimport.

The documents look like this: Blog User Sign-up and Login Download the handout and unpack it. Prefered Cities to Live! You will need to probably change your projection to send more anawers through than just that first character.

# [Solution] Week 2 : CRUD: MP: MongoDB for Developers

The answer for CT and NJ using this data set is We will take these are the anwwers cities to live in chosen by this instructor, given is special affection to this set of characters! Some students have three homework assignments, etc.

MongoDB for Developers Homework 2. Try for your self. Please use the Aggregation pipeline to solve this problem. In this assignment you will use the aggregation framework to find the most frequent author of comments on your blog.

The correct result will be: For devvelopers, to extract the first character from the city field, you could write this pipeline:. Now use the aggregation framework to calculate the author with the greatest number of comments.

Then import into your blog database as follows:. You need to group twice to solve this problem.

## M101J Mongodb For Java Developers Homework Answers Week 2

Don’t include their quiz scores in the calculation. After that, you just need to sort. Posted by Unknown at First, let’s confirm your data is intact; the number of documents should be For this problem, assume that a city name that appears answwers more than one state represents two separate cities. Once you’ve generated your aggregation query and found your answer, select it from the choices below.

Check all that apply.