Chapter 4 Lab 1 different answers

Hi i wanted to tell you that the answer you provided for lab 1 of chapter 4 prints different values.

db.zips.find({ “pop”: { “$gte”: 5000, “$lte”: 1000000 }}).count() this query prints result 11193 whereas

db.zips.find({ “$nor”: [ { “pop”: { “$lt”:5000 } },
{ “pop”: { “$gt”: 1000000 } } ] } ).count() this query prints result 11195.

So, i request you to please look into it.

I have run both commands and both provides 11193.

Either one of two things:

  1. You altered the data set between the 2 commands
  2. The second command you shared is not exactly the one that you ran

Please post a screenshot of running both commands.