Ouwe rakker |
|
SELECT id, land, SUM(`count`) AS `totalcount`, SUM(`view`) AS `totalview`
FROM tabelnaam
GROUP BY land
ORDER BY totalcount DESC
SELECT id, land, SUM(`count`) AS `totalcount`, SUM(`view`) AS `totalview` FROM tabelnaam GROUP BY land ORDER BY totalcount DESC
Hier kan je al wel wat mee. |