|
|
|
| Есть запрос
SELECT *, (total_votes+total_value)/2 AS srednee, score.* FROM score
LEFT JOIN listings ON listings.id = score.id
where make LIKE '".$sort."%' ORDER BY srednee DESC LIMIT 6
Надо применить GROUP BY ID для score, только где его приписать в сложном запросе? | |
|
|
|
|
|
|
|
для: oli
(09.06.2011 в 18:19)
| |
SELECT *, (total_votes+total_value)/2 AS srednee, score.* FROM score
LEFT JOIN listings ON listings.id = score.id
where make LIKE '".$sort."%' GROUP BY scode.id ORDER BY srednee DESC LIMIT 6
|
| |
|
|
|