回答編集履歴

1

調整

2018/07/20 07:24

投稿

yambejp
yambejp

スコア114814

test CHANGED
@@ -19,3 +19,23 @@
19
19
  ただし最高点や最低点が2人以上いるときにどうしたいかなど
20
20
 
21
21
  仕様をつめないといけません
22
+
23
+
24
+
25
+ # 調整
26
+
27
+ ```SQL
28
+
29
+ select t2.student_name,t1.result from test as t1
30
+
31
+ inner join student as t2
32
+
33
+ on substr(t1.id_subject,1,3)=t2.id
34
+
35
+ where not exists(select 1 from test
36
+
37
+ having t1.result>min(result)
38
+
39
+ and t1.result<max(result))
40
+
41
+ ```