H
H
Hubin2014-05-08 11:08:18
PHP
Hubin, 2014-05-08 11:08:18

MongoDB difference between two values

Good afternoon.
There is a collection like
{"_id":'XXX', "price_shop1";100, "price_shop2";200}
how to find documents where the difference between price_shop2 and price_shop1 is less than 50

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question