![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
#3
| |||
| |||
|
|
OK, I solved it by some further trial and error- (I think - unless a larger sample set will prove my query to be incorrect or massively inefficient..) Select * from grid_history a where last_change = (select max(last_change) from grid_history where cmdy = a.cmdy and last_change <= to_date('10-27-02','MM-DD-YY') ); LAST_CHAN CMDY GV --------- ------ ---------- 01-JUN-02 ET .9 01-SEP-02 AT .4 To anyone who looked and even thought about maybe replying to my little problem - thanks! -Mike |
#4
| |||
| |||
|
|
OK, I solved it by some further trial and error- (I think - unless a larger sample set will prove my query to be incorrect or massively inefficient..) Select * from grid_history a where last_change = (select max(last_change) from grid_history where cmdy = a.cmdy and last_change <= to_date('10-27-02','MM-DD-YY') ); LAST_CHAN CMDY GV --------- ------ ---------- 01-JUN-02 ET .9 01-SEP-02 AT .4 To anyone who looked and even thought about maybe replying to my little problem - thanks! -Mike select a.* ,tt.act,tt.grp,tt.effdate,b.enddate from pay a , |
![]() |
| Thread Tools | |
| Display Modes | |
| |