私はこのようなmysqlテーブルを使用しています:
| 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
1 日あたりの登録ユーザー数と、1 日あたりに送信された質問と回答の数をカウントしたいと考えています。1 つの 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