0
我使用MySQL表像這樣的:Mysql的計數ID查詢
| userid | regdate | question | answer |
-----------------------------------------------
1 2010-10-14 question 1 answer1
2 2010-10-14 question 2 answer2
3 2010-10-15 question 3 answer3
4 2010-10-16 question 4 answer4
我想算註冊用戶,每天和每天發送的問題和答案的數量。我可以用一個mysql查詢來做到這一點嗎?
結果應該是這樣的:
| regdate | new users | questions sent | answers sent |
--------------------------------------------------------------
2010-10-14 2 2 2
2010-10-15 1 1 1
2010-10-16 1 1 1