teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

1

質問修正

2015/06/07 10:10

投稿

imamoto_browser
imamoto_browser

スコア1161

title CHANGED
@@ -1,1 +1,1 @@
1
- derivedのエラーが出る
1
+ ERROR 1248 (42000): Every derived table must have its own aliasのエラーが出る
body CHANGED
@@ -1,4 +1,4 @@
1
- select scores.id,name,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;
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
  このクエリを実行すると、ERROR 1248 (42000): Every derived table must have its own aliasとなります。
4
4