I'm trying to extract the number of times than particular words apper in the Subject attribut, I wrote this query:
SELECT to_char(to_timestamp(wo.createdtime/ 1000) AT TIME ZONE 'UTC-1', 'YYYY-MM-dd') as "Created date",count(*) as "Count"
FROM workorder wo
WHERE wo.title LIKE '%lent%' and wo.title like '%easy%'
or wo.title LIKE '%blocc%' and wo.title like '%easy%'
or wo.title LIKE '%rallent%' and wo.title like '%easy%'
group by to_char(to_timestamp(wo.createdtime/ 1000) AT TIME ZONE 'UTC-1', 'YYYY-MM-dd')
order by to_char(to_timestamp(wo.createdtime/ 1000) AT TIME ZONE 'UTC-1', 'YYYY-MM-dd')