나는이 두 개의 테이블이있는 경우 :두 테이블에서 어떻게 선택할 수 있습니까?
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
가 어떻게 다음 쿼리 결과를 표시 할 수 있습니까?
아이디 이름 LNAME 점수는 내가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
을 시도 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 WHERE table_user.Id = table_score_start.user_Id
모든 기록을 보여주고 싶습니다. 생각
무엇이 오류입니까? 또는 단순히 결과가 비어 있습니까? – powtac
@ antonioj1015 좋은 지지자가 되십시오. 대답을 수락하십시오. –
문제를 해결 했습니까? –