回答編集履歴
3
追記
test
CHANGED
@@ -10,4 +10,14 @@
|
|
10
10
|
|
11
11
|
```
|
12
12
|
|
13
|
-
あ、駄目ですね。
|
13
|
+
あ、駄目ですね。無理やりネストしないでやると
|
14
|
+
|
15
|
+
```SQL
|
16
|
+
|
17
|
+
select date_format(日時,'%Y-%m'), count(distinct concat(date_format(日時,'%Y%m%d'), ID))
|
18
|
+
|
19
|
+
from テーブル
|
20
|
+
|
21
|
+
group by date_format(日時,'%Y-%m')
|
22
|
+
|
23
|
+
```
|
2
訂正
test
CHANGED
@@ -9,3 +9,5 @@
|
|
9
9
|
group by date_format(日時,'%Y-%m'), ID
|
10
10
|
|
11
11
|
```
|
12
|
+
|
13
|
+
あ、駄目ですね。
|
1
修正
test
CHANGED
@@ -6,6 +6,6 @@
|
|
6
6
|
|
7
7
|
from テーブル
|
8
8
|
|
9
|
-
group by date_format(日時,'%Y-%m')
|
9
|
+
group by date_format(日時,'%Y-%m'), ID
|
10
10
|
|
11
11
|
```
|