[Question] Hi everyone!! I am not sure this is the...
# general
f
[Question] Hi everyone!! I am not sure this is the right channel for this but here we go. I need to query for all transactions in the past five minutes from now. I have a column with timestamp in a realtime table. However, I do not know how to express this in the
where
part of statement. Anyone tryied that already? I want something more or less like this:
Copy code
where timecolumn <= (current_timestamp - interval '5' minute) as BIGINT * 1000
I tried this
WHERE timecolumn < now() - 86400000
but no success
m
do you get an error message?
Copy code
select count(*)
from pullRequestMergedEvents
where createdTimeMillis > now() - CAST(1000*60*60 AS long)
limit 10
1
it should work pretty similar to how you have it
🙌 1
f
I do get an error message. I'll try this and get back with the result.
Brilliant!!! Thank you so much! It works!! thankyou