1
I need you to bring back the results that completed 90 days within an informed period.
For example, I have the ability to do:
DT_INICIO_REAL <= (sysdate-90), I will have as a result 90 days from the current date
or DT_INICIO_REAL BETWEEN :DT_INICIO AND :DT_FIM
I will have results of the period informed.
But I need to "merge" the two things, I want you to report a period, for example 01/10/2017 until 10/10/2017 and bring me the lines in which DT_INICIO_REAL complete 90 days within the reported period.
You made me go after that function
trunc. I found a use here at Sopt and the documentation therein: https://docs.oracle.com/cd/B19306_01/server.102/b14200/functions201.htm– Jefferson Quesado
sysdatereturns the local day and time. The functiontrunc()serves to convert a typeTIMESTAMPforDATE, "truncating" the hours, minutes and seconds.– Lacobus