After looking at
Is it possible to run SQL select in Oracle and SQL Server to get a large recordset and import it straight into an array, looking to avoid using rownext I'm wondering if you are aware of SQL queries to select the diff of two rows.
But I have never benchmarked it...
Cheers Rolf
( addicted to the Perl Programming Language)