Re: Re: Вопрос относительно Desc
$result=@mysql_query("select sum(game_result.result) as sum,
count(game_result.team_id) as g,
sum(game_result.plus) as plus,
sum(game_result.minus) as minus,
(plus-minus) as razn,
game_result.team_id,game_result.tur_id,team.id ,team.name
from game_result,team
where team.ligue_id=$ligue_id
and game_result.team_id=team.id
and game_result.tur_id<=$tur_id
and game_result.tur_id>0 and game_result.year=$year
group by game_result.team_id order by sum desc,
(razn) desc,team.name");echo @mysql_error();
Пока razn положительное число, все нормально, как только становится меньше 0, сортировка глюкает