G
Guest
This is an example of what I need to do. (The data is from an outside source
so I am stuck with format)
lookup
id | value
-------------
1 | Yes
2 | No
Data
User | Q1| Q2 | Q3|
U1 | 2 | 1 | 2 |
U2 | 1 | 1 | 1 |
I need it to display
U1 No | Yes | No
U2 Yes| Yes | Yes
I have tried using multiple instances of lookup
Lookup--data.Q1, Lookup_1--data.Q2 Lookup_3--data.Q3
but I get an error (...Opened Exclusively...) And this is with a dummy
database with just those tables (closed) and this query.
here is the SQL
SELECT lookup.value, lookup_1.value, lookup_2.value, Data.User
FROM lookup AS lookup_2 INNER JOIN (lookup INNER JOIN (lookup AS lookup_1
INNER JOIN Data ON lookup_1.id = Data.Q2) ON lookup.id = Data.Q1) ON
lookup_2.id = Data.Q3;
Any Ideas?
Thanks
so I am stuck with format)
lookup
id | value
-------------
1 | Yes
2 | No
Data
User | Q1| Q2 | Q3|
U1 | 2 | 1 | 2 |
U2 | 1 | 1 | 1 |
I need it to display
U1 No | Yes | No
U2 Yes| Yes | Yes
I have tried using multiple instances of lookup
Lookup--data.Q1, Lookup_1--data.Q2 Lookup_3--data.Q3
but I get an error (...Opened Exclusively...) And this is with a dummy
database with just those tables (closed) and this query.
here is the SQL
SELECT lookup.value, lookup_1.value, lookup_2.value, Data.User
FROM lookup AS lookup_2 INNER JOIN (lookup INNER JOIN (lookup AS lookup_1
INNER JOIN Data ON lookup_1.id = Data.Q2) ON lookup.id = Data.Q1) ON
lookup_2.id = Data.Q3;
Any Ideas?
Thanks