Answer the question
In order to leave comments, you need to log in
How to get the value of a cell column into a variable from a selection in order to conditionally get a new selection with it?
There is a database of the form:
id value
1 0.1
2 0.4
3 0.7
4 0.1
5 0.2
It is necessary to make a complex select so that, in accordance with the condition (between two numbers), certain rows are selected, their id is obtained from them, and the next row is checked, after that id with the same condition. In the end, only those rows should be returned whose neighbors by id satisfy all the rules.
Is it possible to do this with just one MySQL query? 0_o
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question