これらの2つのテーブルがある場合:
table_user
Id name lname
1 Mark Brown
2 Martha Fox
table_score_start:
user_Id score
2 5
table_score_last:
user_Id score
1 3
2 4
次のクエリ結果を表示するにはどうすればよいですか?
ID 名前 名前 スコア スコア 1 マーク ブラウン 3 2 マーサ フォックス 5 4
私は試した
SELECT table_user.Id, table_user.name, table_user.lname, table_score_start.score,
table_score_last.score FROM table_user, table_score_start, table_score_last
しかし、それは機能しません
私も試しました
SELECT table_user.Id, table_user.name, table_user.lname, table_score_start.score,
table_score_last.score FROM table_user, table_score_start, table_score_last WHERE table_user.Id = table_score_start.user_Id
table_score_start と table_score_last の 1 つまたは 2 つのテーブルにないレコードも含めて、すべてのレコードを表示したい