Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Compare current and next row data
Hi!
Is there a way to compare data from two row (current and next row) of data in Oracle by just one SQL statement?
I have a table looks like this
f1 f2 ------------------- ----
How can I compare the time differences betwen 1st and 2nd rows by just using one SQL statement.
Appreciate you help. Thanks
Bob Received on Thu Jun 02 2005 - 03:05:31 CDT