MySQL Forums
Forum List  »  Newbie

Re: Limit inclouding also all the equals with the last row
Posted by: Kostas Konstantinidis
Date: June 25, 2016 11:13AM

Dear Peter,
trying your last suggestion

select a.person, a.countofid_films as N
from temp a
join (
select distinct countofid_films
from temp
order by countofid_films desc
limit 10
) b using( countofid_films);
order by N desc;

it returns
ERROR 1349: View's SELECT contains a subquery in the FROM clause

thank's

Options: ReplyQuote




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.