MySQL Forums
Forum List  »  Newbie

Re: Highest value from last n row
Posted by: Peter Brawley
Date: April 19, 2016 12:18PM

Is this what you mean?

select datetime, '64000005E5CBCD28`
from (
  select datetime, `64000005E5CBCD28`
  from my_table
  order by datetime desc limit 100
) x
order by '64000005E5CBCD28` desc limit 1;

Options: ReplyQuote


Subject
Written By
Posted
Re: Highest value from last n row
April 19, 2016 12:18PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.