Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reddit data still importing... #27

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added Mongo_CH1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 12 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,32 +47,31 @@

## Challenge 1

[Screenshot your query and a result]
![image](Mongo_CH1.png)

## Challenge 2

[Query snippet]
[Answer]
> db.norm.aggregate([{"$match":{"DATE":{$regex:/20100425/}}},{"$group":{"_id":null,"Average Wind Speed: ":{"$avg":"$HLY-WIND-AVGSPD"}}}])

9.27

## Challenge 3

[Query snippet]
[Answer]
> db.reviews.aggregate([{"$match":{"type":"business","city":"Madison"}},{"$group":{"_id":null,"Reviews from Madison: ":{"$sum":"$review_count"}}}])

34410 reviews

## Challenge 4

[Query snippet]
[Answer]
> db.all.aggregate([{"$match":{"type":"business","city":"Las Vegas"}},{"$group": {"_id":null,"Reviews from Vegas: ":{"$sum":"$review_count"}}}])

## Challenge 5
577550 reviews

[Query snippet]
[Answer]
## Challenge 5

## Challenge 6 [BONUS]
> db.all.aggregate([{"$match":{"type":"business","city":"Pheonix"}},{"$group":{"_id":null,"Reviews from Pheonix: ":{"$sum":"$review_count"}}}])

[Code]
[Answer]
16 reviews