テーブル内のグループを使用してこれらのクエリを取得するにはどうすればよいですか? 「SaveDate」列の日付であっても、日ごとにグループ化したい。次のように:
+---+------------+------------+---+------------+
|Day|queryresult1|queryresult2|...|queryresult5|
+---+------------+------------+---+------------+
|1 |count |count |...|count |
+---+------------+------------+---+------------+
|2 |count |count |...|count |
+---+------------+------------+---+------------+
|...|... |... |...|... |
+---+------------+------------+---+------------+
|...|... |... |...|... |
+---+------------+------------+---+------------+
|...|... |... |...|... |
+---+------------+------------+---+------------+
|30 |count |count |...|count |
+---+------------+------------+---+------------+
テーブルの列 savedate にデータを記録するのに 1 ~ 15 日。30 日を表示するにはどうすればよいですか?
Select
(Select Count(*) from Document Where LineID=45 and Esitlendi=1) result1,
(Select Count(*) from Document Where LineID=45 and Esitlendi=1 and TutanakUserID is not null) as result2,
(Select Count(*) from Document Where LineID=45 and Esitlendi=1 and BayiEksik=0 and SahaEksik=0) as result3,
(Select Count(*) from Document Where LineID=45 and Esitlendi=1 and BayiEksik=1 and SahaEksik=0) as result4,
(Select Count(*) from Document Where LineID=45 and Esitlendi=1 and BayiEksik=1 and SahaEksik=1) as result5
ありがとう