Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: As On A Date query

Re: As On A Date query

From: Vitalis via DBMonster.com <forum_at_DBMonster.com>
Date: Fri, 01 Apr 2005 12:56:26 GMT
Message-ID: <db18c7f98e5045b880e6149fadfe90b2@DBMonster.com>


Hi,

You could create a B*tree index on (ac_no,XXXXdate) and try something like: select balance from t where ac_no=101 and XXXXdate=(select max(XXXXdate) from t where ac_no=101 and XXXXdate<='10-APR-2005');

Jerome

-- 
Message posted via http://www.dbmonster.com
Received on Fri Apr 01 2005 - 06:56:26 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US