Re: Oracle 11.2.0.3 timediff function

From: Stéphane Faroult <sfaroult_at_roughsea.com>
Date: Sun, 14 Feb 2016 12:34:08 -0600
Message-ID: <56C0C8A0.7020301_at_roughsea.com>



Hi MJ,

     If I understand well, you want to compute the difference between two timestamps in different rows? First of all, subtraction of two dates will give you a result in seconds, and for subsequent rows look at lag() over (), for instance. It will avoid a self join.

Stéphane Faroult

On 14/02/16 12:25, MJ Chicago wrote:
> I am asking two questions here:
> a) compute timediff without having to join table onto itself
> b) any additional recommendation to generally improve query performance
>
>
>

--
http://www.freelists.org/webpage/oracle-l
Received on Sun Feb 14 2016 - 19:34:08 CET

Original text of this message