Get PyMongo installed on your computer. The project operator can extract the first digit from any field. Download the HW from the Download Handout link and uncompress it. Type the following commands into the mongo shell: Some students have three homework assignments, etc. Posted by Unknown at 6:

After that, you just need to sort. Use mongorestore to restore the dump into your running mongod. The code is not 3. Download the handout and run it as follows: Some students have three homework assignments, etc.

We have provided the full code for the blog application and you don’t need to make any changes, or even run the blog. Using the aggregation framework, calculate the sum total of people who are living in a zip code where the city starts with a digit. 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. Posted by Unknown at 8: Type the validation code below.

Monday, February 13, [Solution] Week 5: The blog home page The page that displays blog posts by tag http: What can you infer from the following explain output? We are now going to test that you have bottle installed correctly and can run a bottle-based project. The areas where you need to add code are marked with XXX. Start by downloading the handout zip file for this problem.


Please use the Aggregation pipeline to solve this problem. Also, you will need a filtering step to get rid of all documents where the city does not start with a digital Please round the answer to a whole number.

[Solution] Week 1 : Introduction : MP: MongoDB for Developers

We will take that to mean they don’t really live in a city. Don’t include their quiz scores in the calculation. Sunday, February 5, [Solution] Week 4: The output of sh.

m101p homework 1.2

We will be using a data set similar to ones we’ve used before. The documents look like this: To start, please download sysprofile. The code is not 3.

MongoDB university m101p chapter 1 homework

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, we hoework used a subset of the data you previously used in zips.

m101p homework 1.2

But you can, for fun. To be clear, each student’s average includes only exams and homework grades.

Download the HW from the Download Handout link and uncompress it. For this set, there are only documents and zip ,101pand all of them are in New York, Connecticut, New Jersey, and California.


For example, to extract the first digit from the city field, you could write this query:.

MongoDB university mp chapter 1 homework – bigmongodb

Monday, January 30, [Solution] Week 3: Next, go hommework the Mongo shell, perform a findOne on the collection called hw1 in the database m There are hyperlinks from the post tags to the page that displays the 10 most recent blog entries for that tag. Note that are three commands.

Import it into your mongod using the following command from the command line: Note that you will need to get MongoDB installed and the homework dataset imported from the previous homework before attempting this problem. Removing Rural Residents 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.