回答編集履歴
1
コード追記
test
CHANGED
@@ -21,3 +21,27 @@
|
|
21
21
|
table1.id;
|
22
22
|
|
23
23
|
```
|
24
|
+
|
25
|
+
|
26
|
+
|
27
|
+
クロス集計クエリを使うなら、
|
28
|
+
|
29
|
+
```sql
|
30
|
+
|
31
|
+
TRANSFORM Sum(table1.score)
|
32
|
+
|
33
|
+
SELECT
|
34
|
+
|
35
|
+
table1.id
|
36
|
+
|
37
|
+
FROM
|
38
|
+
|
39
|
+
table1 INNER JOIN table2 ON table1.id = table2.id
|
40
|
+
|
41
|
+
GROUP BY table1.id
|
42
|
+
|
43
|
+
PIVOT
|
44
|
+
|
45
|
+
IIf([time] Between [start] And [goal],"OK_score","NO_score") In ("OK_score","NO_score");
|
46
|
+
|
47
|
+
```
|