in reply to Re: Much slower DBI on RHEL6
in thread Much slower DBI on RHEL6
I assume here that the pair (id, rpt_key) is unique, but it should not hurt even if it isn't.select li_i.id, description from list_index li_i join ( select id, max(rpt_key) as rpt_key from list_index group by id ) li_o on li_i.id = li_o.id and li_i.rpt_key = li_o.rpt_key;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Much slower DBI on RHEL6
by MPM (Novice) on Feb 07, 2014 at 11:32 UTC | |
by MPM (Novice) on Feb 07, 2014 at 12:44 UTC | |
by Anonymous Monk on Feb 07, 2014 at 13:47 UTC |