Re: [GENERAL] Overlapping ranges

2014-06-19 Thread Steve Crawford
On 06/18/2014 04:47 PM, Jason Long wrote: I have a large table of access logs to an application. I want is to find all rows that overlap startdate and enddate with any other rows. The query below seems to work, but does not finish unless I specify a single id. select distinct a1.id from t_acce

Re: [GENERAL] Overlapping ranges

2014-06-18 Thread Alban Hertroys
On 19 Jun 2014, at 1:47, Jason Long wrote: > I have a large table of access logs to an application. > > I want is to find all rows that overlap startdate and enddate with any > other rows. > > The query below seems to work, but does not finish unless I specify a > single id. > > select dis

Re: [GENERAL] Overlapping ranges

2014-06-18 Thread Jason Long
On Wed, 2014-06-18 at 18:08 -0600, Rob Sargent wrote: > On 06/18/2014 05:47 PM, Jason Long wrote: > > > > I have a large table of access logs to an application. > > > > I want is to find all rows that overlap startdate and enddate with any > > other rows. > > > > The query below seems to wo

Re: [GENERAL] Overlapping ranges

2014-06-18 Thread Rob Sargent
On 06/18/2014 05:47 PM, Jason Long wrote: I have a large table of access logs to an application. I want is to find all rows that overlap startdate and enddate with any other rows. The query below seems to work, but does not finish unless I specify a single id. select distinct a1.id from t_acce

[GENERAL] Overlapping ranges

2014-06-18 Thread Jason Long
I have a large table of access logs to an application. I want is to find all rows that overlap startdate and enddate with any other rows. The query below seems to work, but does not finish unless I specify a single id. select distinct a1.id from t_access a1, t_access a2 where tstzr