I have two tables. Names:
Colors:
Using a table join how do I get a record that's like this:
"SELECT names.*,Color from names INNER JOIN Colors ON (Colors.Foreign_id = names.ID)" gives me three rows with duplicate names etc.
Anyone know?
Thanks in advance!
Code:
[u]ID |First|Last[/u]
1 |Joe |Blogs
2 |Ann |Smith
Code:
[u]Foreign_ID|Color[/u]
1 |Blue
1 |Red
1 |Green
2 |Red
Code:
Joe Bloggs Blue Red Green
Anyone know?
Thanks in advance!