Answer the question
In order to leave comments, you need to log in
BETWEEN operator for a range of values?
Good day to all.
The question is about the BETWEEN operator (or an alternative)
The task is to find the price close_price in the percentage range of prices open_price
Here is the table:
For obvious reasons, the query does not work:
SELECT * FROM table
WHERE close_price BETWEEN
(select ((open_price * 0.10) + open_price) from table)
AND
(select (open_price - (open_price * 0.10)) from table);
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