Chapter 4 Operations Lab 2 help

Having issues with my IDE continually returning “0” as the results. Below is the query I’m trying to use. Any help would be greatly appreciated.

db.companies.find({"$and":[{"$or":[{“founded_year”:2004},{“founded_month”:10}]},{"$or":[{“category_code”:“social”},{“category_code”:“web”}]}]}).count()

May be you are simply using the wrong database. Post the output of the mongo shell command:

db
show collections

You are

The question is about the sample_training.zips collection but you are using myFirstDatabase rather than sample_training. Just run the command use sample_training and you should be good to go. See

Ah ok i see. Thanks for your help!