I have Ingres DB and a table with timestamp column (seconds since 01/01/1970). I need to find all entries which happened today. Possible solution is:
SELECT * FROM table WHERE date(_date(timestamp)) = date('today')
However, converting every timestamp into ingresdate
is not the most efficient and I would like to just compare integers (i.e. timestamp > x() AND timestamp < x() + 86400
)
Is there a way to convert date('today')
into timestamp? I cannot find anything about it in ingress documentation.