回答編集履歴
1
訂正
test
CHANGED
@@ -40,7 +40,7 @@
|
|
40
40
|
|
41
41
|
on s.user_id=f.user_id and s.laps=f.laps and s.chk_point=f.chk_point-1
|
42
42
|
|
43
|
-
where f.chk_point=1
|
43
|
+
where f.chk_point=1
|
44
44
|
|
45
45
|
) src
|
46
46
|
|
@@ -68,7 +68,7 @@
|
|
68
68
|
|
69
69
|
on s.user_id=f.user_id and s.laps=f.laps and s.chk_point=f.chk_point-1
|
70
70
|
|
71
|
-
where f.chk_point=2
|
71
|
+
where f.chk_point=2
|
72
72
|
|
73
73
|
) src
|
74
74
|
|
@@ -80,6 +80,6 @@
|
|
80
80
|
|
81
81
|
```
|
82
82
|
|
83
|
-
各チェックポイント毎のSQL部分は抽出条件(
|
83
|
+
各チェックポイント毎のSQL部分は抽出条件(where f.chk_point=X)を除き同じ。
|
84
84
|
|
85
85
|
※withが使えればシンプルになりますが、バージョン8.0以降でないと使えないので。
|