I am new to MongoDB and NoSQL and have the following query: I have the following documents in a sample MongoDB Collection
Data Collection
{ "Name" : "A",
"date" : "2015-04-29"
},
{ "Name" : "B",
"date" : "2015-04-29"
},
{ "Name" : "A",
"date" : "2015-04-30"
}
I want to run a query on the comparing the dates trying to find out which name was not present on date = "2015-04-30" but was present on date = "2015-04-29".
The result of the above query would be :
{ "Name" : "B" }
Basically trying to compare results from two mongodb queries and then showing a result. Please let me know if this would be possible to do.