Zdravim,

mam tabulku
Kód:
user    | page         |date
1       | /index.html  | 2006-05-02 12:34:56
1       | /zbozi.html  | 2006-10-01 12:35:56
2       | /index.html  | 2006-10-01 12:35:56
2       | /zbozi.html  | 2006-10-02 00:35:56
1       | /info.html   | 2006-10-04 08:45:56
3       | /index.html  | 2006-10-08 12:35:56
2       | /index.html  | 2006-10-12 12:35:56
A potreboval bych vypsat adresy stranek s poctem useru ktery k ni pristoupili.
Na techto datech:
/index.html --- 3
/zbozi.html --- 2
/info.html --- 1

Chci aby to vypsalo pocet _ruznych_ useru, kteri stranku navstivili. To, ze user 2 byl na strance /index.html me nezajima.

Zkousel jsem
SELECT COUNT(user), page FROM stats GROUP BY page

Ale to mi prave vypise ze tam byl user 2 dvakrat. "Reseni" by bylo si vypsat pro kazdyho usere na kolika ruznych strankach byl, ale to se mi nezda jako rozumne reseni.

Dik za napady.