SQL does not produce what I want
Completed
I did this, which basically groups two different queries in brackets an AND operator:
SELECT * FROM Monthly_Merchant_Fees where (Year >= 2020 and Month >= 2) and (Year <= 2020 and Month <= 2)
But what I get is the following. Where are the brackets that I purposely add to groups two queries together?
db.Monthly_Merchant_Fees.find({
Year: {
$gte: 2019,
$lte: 2020
},
Month: {
$gte: 2,
$lte: 2
}
})
Actually,
I managed to activate "Verbose Shell", and the result is really weird. As you can see below, it does not have any reference to the any part of "$gte" query.
to the translated code:
Actually,
I managed to activate "Verbose Shell", and the result is really weird. As you can see below, it does not have any reference to the any part of "$gte" query.
to the translated code:
We have worked out a new test build to resolve this "group and" issue, please download and give it a try.
MacOS: https://nosqlbooster.com/s3/download/releasesv5/nosqlbooster4mongo-5.2.11-beta.1.dmg
Windows: https://nosqlbooster.com/s3/download/releasesv5/nosqlbooster4mongo-5.2.11-beta.1.exe
We have worked out a new test build to resolve this "group and" issue, please download and give it a try.
MacOS: https://nosqlbooster.com/s3/download/releasesv5/nosqlbooster4mongo-5.2.11-beta.1.dmg
Windows: https://nosqlbooster.com/s3/download/releasesv5/nosqlbooster4mongo-5.2.11-beta.1.exe
We have worked out a new test build to resolve this "group and" issue, please download and give it a try.
MacOS: https://nosqlbooster.com/s3/download/releasesv5/nosqlbooster4mongo-5.2.11-beta.1.dmg
Windows: https://nosqlbooster.com/s3/download/releasesv5/nosqlbooster4mongo-5.2.11-beta.1.exe
We have worked out a new test build to resolve this "group and" issue, please download and give it a try.
MacOS: https://nosqlbooster.com/s3/download/releasesv5/nosqlbooster4mongo-5.2.11-beta.1.dmg
Windows: https://nosqlbooster.com/s3/download/releasesv5/nosqlbooster4mongo-5.2.11-beta.1.exe
Hi Qinghai,
I have installed the exe and it produces a different code now, which seems more correct.
However, I actually expect a different result as I explain below:
I have a collection, XYZ that contains:
What I want to do is something like this in SQL, which basically making two groups of "and" queries
SELECT * FROM XYZ WHERE (Year >= 2019 and Month >= 3) and (Year <= 2020 and Month <= 2)
I expect the result to be
Hi Qinghai,
I have installed the exe and it produces a different code now, which seems more correct.
However, I actually expect a different result as I explain below:
I have a collection, XYZ that contains:
What I want to do is something like this in SQL, which basically making two groups of "and" queries
SELECT * FROM XYZ WHERE (Year >= 2019 and Month >= 3) and (Year <= 2020 and Month <= 2)
I expect the result to be
Replies have been locked on this page!