Hi,
I have 2 tables that I have to get data from. The first table will determine what data is pulled from the second. The problem is that I need to pull 3 records for each record pulled from the first.
Here's an example of the tables:
TABLE: areas
areaID personcode1 personcode2 personcode3
----------------------------------------------
A1 gjsmith hltier kdjones
A2 klbinn dlcope bknelson
A3 jkelms wacopper kdyoke
TABLE: people
code name
----------------
gjsmith Greg Smith
klbinn Kris Binn
jkemlms Josh Elms
hltier Hans Tier
dlcope David Cope
wacopper Bill Copper
kdjones Kristin Jones
bknelson Briah Nelson
kdyoke Kari Yoke
For each area I need to display the 3 names together. So far I can only display the areaID and one name. I would like to display like this:
A1-Greg Smith, Hans Tier, Kristin Jones
A2-Kris Binn, David Cope, Briah Nelson
etc.
Please help me. Thank you!!
Ryan
I have 2 tables that I have to get data from. The first table will determine what data is pulled from the second. The problem is that I need to pull 3 records for each record pulled from the first.
Here's an example of the tables:
TABLE: areas
areaID personcode1 personcode2 personcode3
----------------------------------------------
A1 gjsmith hltier kdjones
A2 klbinn dlcope bknelson
A3 jkelms wacopper kdyoke
TABLE: people
code name
----------------
gjsmith Greg Smith
klbinn Kris Binn
jkemlms Josh Elms
hltier Hans Tier
dlcope David Cope
wacopper Bill Copper
kdjones Kristin Jones
bknelson Briah Nelson
kdyoke Kari Yoke
For each area I need to display the 3 names together. So far I can only display the areaID and one name. I would like to display like this:
A1-Greg Smith, Hans Tier, Kristin Jones
A2-Kris Binn, David Cope, Briah Nelson
etc.
Please help me. Thank you!!
Ryan