|
Unfortunately, I need to use the actual values from the fieldNames table to populate my query instead of using numbers that are stored in the members table.
fieldName table
ID, Name
1, Case Track
2, Business History
3, Accounting
members table
ID, Name, Primary, Secondary
1, Chris Ell, 2, 3
2, Bob Frank, 1, 2
3, John Smith, 3, 1
When I query and choose Primary=1 or Secondary=3, I want to see:
ID, Name, Primary, Secondary
2, Bob Frank, Case Track, Business History
1, Chris Ell, Business History, Accounting
What happens with either Select or Select Distinct, I get the following
ID, Name, Primary, Secondary
2, Bob Frank, Case Track, Case Track
2, Bob Frank, Business History, Business History
1, Chris Ell, Business History, Business History
1, Chris Ell, Accounting, Accounting
Last edited by chellert; 10-11-2012 at 04:13 PM..
Reason: more information
|