Quasi möchtest du nach page und subpage gruppieren.
page ! subpage ! out
1 ! 0 ! 1
1 ! 1 ! 3
1 ! 2 ! 1
2 ! 0 ! 2
2 ! 1 ! 1
Wenn ich meine MYSQL Abfrage so gestellte:
SELECT page,count(*) AS out FROM table GROUP BY page
Dann mach das auch:
SELECT
`page`, `subpage`, COUNT(*) AS `count`
FROM
`table`
GROUP BY
`page`, `subpage`;
MfG
bubble
--
If "god" had intended us to drink beer, he would have given us stomachs. - David Daye
If "god" had intended us to drink beer, he would have given us stomachs. - David Daye