I want to do a query in nosql database using the BETWEEN operation ? I want to do something like this:
SELECT * FROM table
WHERE column_timestamp BETWEEN '2021-01-01'
AND '2021-12-31'
How to do this query in NoSQL Database? Is BETWEEN supported ?
In your case because your column seems to be a timestamp, you need to cast the timestamp values to TIMESTAMP type. Then you'd just use <= and >= operators.
Be careful, when doing queries with only dates w/o providing the time. Here a testcase using <, <=, >=, >.