I have a table
Table Name:Name
NameID...Name
1.............John
2.............Mike
3.............Bill
Table Name:Color
ColorID...Color
1.............Red
2.............Blue
3.............Green
Table Name:Match
NameID...ColorID
1..............2
2..............3
3..............1
I want it to ouput:
John Blue
Mike Green
Bill Red
I tried... which didnt work
Select Name, Color from Name, Color, Match where Name.NameID=Match.NameID AND Color.ColorID=Match.ColorID which outputs what looks like all possible combinations....
What am I doing wrong?
What is this process called?
Table Name:Name
NameID...Name
1.............John
2.............Mike
3.............Bill
Table Name:Color
ColorID...Color
1.............Red
2.............Blue
3.............Green
Table Name:Match
NameID...ColorID
1..............2
2..............3
3..............1
I want it to ouput:
John Blue
Mike Green
Bill Red
I tried... which didnt work
Select Name, Color from Name, Color, Match where Name.NameID=Match.NameID AND Color.ColorID=Match.ColorID which outputs what looks like all possible combinations....
What am I doing wrong?
What is this process called?