Hi all,
I have a table in an Oracle Database that has, among others, a DATE column that is loaded with the insertion timestamp of each row. I need to use existing data in such table to analyze the correlation between some events, so that with data like this:
COL_1 COL_2 TS
A 1 Mon 15, February 2010 10:03:22
B 2 Mon 15, February 2010 10:05:37
C 3 Mon 15, February 2010 10:20:21
D 4 Mon 15, February 2010 10:20:21
E 5 Mon 15, February 2010 10:20:24
F 6 Mon 15, February 2010 10:23:35
G 7 Mon 15, February 2010 10:45:22
I would like to correlate to something like this, assumming related records are between a 5-minutes max difference between current and next "TS":
FIRST_TS COUNT
Mon 15, February 2010 10:03:22 2
Mon 15, February 2010 10:20:21 4
Mon 15, February 2010 10:45:22 1
Is is possible to use analytic functions to achieve this? How?