I performed exact same query and i am getting different answers

db.zips.find({ pop:{$lt:1000}}).count()
8062 for me
and answer is 8065 why this is happening

May be dataset got changed
Delete and load the zips again and see

1 Like

Hi @krishna_kakade,

As @Ramachandra_37567 mentioned, somehow the dataset got modified by any query that you ran earlier.

Hope you were able to resolve the issue.

Let us know if you are still facing any issues.