I need to make a query that brings the calls that are outside the SLA for 48 hours calculating the dates and times of the call's opening and current date, can anyone help me?
I need to make a query that brings the calls that are outside the SLA for 48 hours calculating the dates and times of the call's opening and current date, can anyone help me?
Subtracting two dates in Oracle results in the difference in days (or fraction), to know in hours, multiply by 24.
Something like.
Select ...
From tabela
Where ...
And (datachamado - sysdate) * 24 >= 48
...