Answer the question
In order to leave comments, you need to log in
How to get the value from the next entry?
Hello.
I have a query that gives me a bunch of dates
select trunc(logs.DATETIME) from Logs logs
where logs.Id = 123
order by logs.DATETIME
21.04.2016
22.04.2016
23.04.2016
24.04.2016
21.04.2016 22.04.2016
22.04.2016 23.04.2016
23.04.2016 24.04.2016
24.04.2016 *sysdate*
Answer the question
In order to leave comments, you need to log in
https://docs.oracle.com/cd/B19306_01/server.102/b1...
www.sql-tutorial.ru/en/book_lag_and_lead_functions.html
PS Second MSSQL link, but very descriptive
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question