MONGODB M101P HOMEWORK 5.1 ANSWERS

You will be using the zip code collection data set, which you will find in the ‘handouts’ link in this page. For this set, there are only documents and zip codes , and all of them are in New York, Connecticut, New Jersey, and California. After that, you just need to sort. Those students achieved a class average of For this problem, we have used a subset of the data you previously used in zips.

A city might have multiple zip codes. If you notice that while importing, there are a few duplicates fear not, this is expected and will not affect your answer. 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. You will need to probably change your projection to send more info through than just that first character.

mongodb m101p homework 5.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:. 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.

For example, to extract the first character from the city field, you could write this pipeline:. We will take these are the prefered cities to live in chosen by this instructor, given is special affection to this set of characters! You hpmework need to probably change your projection to send more info through than just that first character.

  SOALAN SPOT ESSAY SPM 2015

Study IQ World: Week 5 : AGGREGATION FRAMEWORK : MP: MongoDB for Developers

In this assignment you will use the aggregation framework to find the most frequent author of comments on your blog For this set, there are only documents and zip codesand all of them are in New York, Connecticut, New Jersey, annswers California. In this assignment you will use the aggregation homewrk to find the most frequent author of comments on your blog.

Download the handout and mongoimport. Please use the Aggregation pipeline to solve this problem.

Check all that apply. Please round the answer to a whole number. Your task is to calculate the class with the best average student performance. The answer for CT and NJ using this data set is 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.

Start by downloading the handout zip file for this problem.

mongodb m101p homework 5.1 answers

After that, you just need to sort. Different states might have the xnswers city name. We will be using a data set similar to ones we’ve used before. The documents look like this: Then import into your blog database as follows:.

  NLEC ESSAY COMPETITION

Try for your self. Choose the answer below. At the end I just want to say if you want to learn mongoDB, First practice with youself. Some students have three homework assignments, etc.

You need to group twice to solve this problem. Don’t include their quiz scores in the calculation. 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.

mongodb m101p homework 5.1 answers

Prefered Cities to Live! Once you’ve generated your aggregation query and found your answer, select it from the choices below. To be clear, each student’s average includes only exams and homework grades.

Note that not all students in the same class have the same exact number of assessments.

Mongodb M101J Homework 1 1 Answers

To help you verify your work before submitting, the author with the fewest comments is Mariela Sherer and she commented times. Who’s the easiest grader on campus? For this problem, we have used a subset of the data you previously used in zips.