Lopuch, server nejenpro botanikyLopuch.cz
select count(*), sum(like_positive) ... group by interpret_id, song_id
SELECT `interpret_id`, `song_id`, SUM(`like`) as likeRating, SUM(case when `like` > 0 then 1 else 0 end) as plusLike, SUM(case when `like` < 0 then 1 else 0 end) as minusLike FROM `rating` group by `interpret_id`, `song_id` order by likeRating ASC