如何使用表中的组获取这些查询?“SaveDate”即使我想按天分组列中的日期。如下:
+---+------------+------------+---+------------+
|Day|queryresult1|queryresult2|...|queryresult5|
+---+------------+------------+---+------------+
|1 |count |count |...|count |
+---+------------+------------+---+------------+
|2 |count |count |...|count |
+---+------------+------------+---+------------+
|...|... |... |...|... |
+---+------------+------------+---+------------+
|...|... |... |...|... |
+---+------------+------------+---+------------+
|...|... |... |...|... |
+---+------------+------------+---+------------+
|30 |count |count |...|count |
+---+------------+------------+---+------------+
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
谢谢