質問編集履歴
1
質問修正
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
derived
|
1
|
+
ERROR 1248 (42000): Every derived table must have its own aliasのエラーが出る
|
test
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
select scores.id,
|
1
|
+
select scores.id,score,deviation from (select score,deviation from scores where score >30) union all(select score,deviation from scores left join students on scores.id = students.id where name like %suzuki%) as uni;
|
2
2
|
|
3
3
|
|
4
4
|
|