Skip to content

Group by time with postgres and jooq

How to group by minute, hour, day, or week in jooq. I have found out that in postgres we can use date_trunc(‘minute’, created_at) function for that. The simplified SQL I am using for that is: select …

DO while based on query result

I got a block of the code written in PHP it uses a DB connection to an Oracle DB, i need to run a query on a data and the result for the first query it should be an input of the next query and this …