- May 8, 2007
- 86
- 0
- 0
I want to use information from two tables to create a unique combination of data. Take this example using two tables, Foo and Boo. I want to combine both tables to generate a result set shown at the end. Thanks!
I am using SQL
Foo:
ID | Name |
1 | Joe
2 | Bob
Boo
cID | Person A | Person B
1 | 1 | 2
I want my result row to look something like
cID | A_ID | A_Name | B_ID | B_Name
so in the case of getting cID = 1 I want the row to be
1 | 1 | Joe | 2 | Bob
I am using SQL
Foo:
ID | Name |
1 | Joe
2 | Bob
Boo
cID | Person A | Person B
1 | 1 | 2
I want my result row to look something like
cID | A_ID | A_Name | B_ID | B_Name
so in the case of getting cID = 1 I want the row to be
1 | 1 | Joe | 2 | Bob
