Re: How to select the <= date row?

From: Reinoud van Leeuwen <reinoud_at_xs4all.nl>
Date: 1996/06/06
Message-ID: <31b75fb9.325337_at_news.xs4all.nl>#1/1


On Thu, 06 Jun 96 13:10:09 GMT, stefanbm_at_iafrica.com (Stefan Mahs) wrote:

>Two things make this a particularly challenging problem:
>
> 1) This query has to be done from a query tool, so we are restricted to a
> single SQL statement (unless Business Objects can build a report from
> more than one SQL statement).
>
>2) Selecting the max(specified_date) where event_date <= specified_date
> works fine, but it will take a couple of days to wade through 40
> million rows.

could you try something like

set rowcount = 50
select max (specified_date) ORDER by date



Reinoud van Leeuwen
reinoud_at_xs4all.nl
http://www.xs4all.nl/~reinoud
Received on Thu Jun 06 1996 - 00:00:00 CEST

Original text of this message