答案 0 :(得分:3)
据我了解,每个成员可以是成年人或少年。如果他是成年人,那么他有一个地址。如果他是少年,他的地址是成年人的地址,这个少年与之相关,在这种情况下你可以试试这个:
Select mbrs.FirstName, mbrs.LastName, adls.Street, adls.City, adls.State, adls.ZIP
From Members mbrs Inner Join Adults adls
On mbrs.MemberNo = adls.MemberNo
Union All
Select mbrs.FirstName, mbrs.LastName, adls.Street, adls.City, adls.State, adls.ZIP
From Juvelines jvls Inner Join Members mbrs
On jvls.MemberNo = mbrs.MemberNo
Inner Join Adults adls
On jvls.AdultMemberNo = adls.MemberNo
希望这有帮助!