Code:
select w.credit, user_top10.id
from wetten w
join (select * from users order by points desc limit 10) as user_top10
on user_top10.id = w.user_id
join (select * from matches where status = 'closed' order by date desc limit 10) as match_top10
on match_top10.id = w.match_id;
Gruß,
Amica
Einen Kommentar schreiben: