Hi Team,
I am Bhaskar from OBM Background.
I have developed MS SQL query to get last 7 days events (with Servicenow Integration) . The query is working as expected on MSSQL Database but when I tried it on Vertica it is not working.
Could you please help me in fixing the time functions.
MS SQL Query:
SELECT right(cast([TIME_CREATED] as date),10) as 'Day', count(substring([TEXT],21,10)) as Tickets
FROM [event_schema].[dbo].[EVENT_ANNOTATIONS]
where TIME_CREATED > = convert(datetime,convert(varchar(8),getdate()-7,112))
--and TIME_CREATED between convert(datetime,convert(varchar(8),getdate(),112)) and convert(datetime,convert(varchar(8),getutcdate(),112))
and [text] not like '%changed%'
group by cast(TIME_CREATED as date)




