Placeholder in PostgreSQL query with double colon :: cast
I have this SQL query: select date_trunc('month',created_at-'6d 18:06:56'::interval) +'6d 18:06:56'::interval as created_at, count(*)filter(where status='ACTIVE') as active, count(*)filter(where status='BLOCKED') as blocked from companies where now()-'12 months'::interval < created_at group by 1 order by 1; I tried to use it into Spring…