So I have two tables: CASES and REACTIONS.
in CASES, I have CASE_ID, REACTION_ID_EYES and REACTION_ID_SYSTEM.
in REACTIONS, I have REACTION_ID, REACTION_TYPE and REACTION_NAME.
so it looks like this:
[tt]
CASES
Case_ID Reaction_ID_Eyes Reaction_ID_System
42 13 16
43 14 15
44 13 <NULL>
45 <NULL> 16
REACTIONS
Reaction_ID Reaction_Name Reaction_Type
13 pink eye eyes
14 dry eye eyes
15 cooties system
16 funk system
Ultimately, I'd like to be able to retrieve data that looks like this:
CASE_ID REACTION_NAME_EYES REACTION_NAME_SYSTEM
42 pink eye funk
43 dry eye cooties
44 pink eye (none)
45 (none) funk
...but because one of the reactions for a particular case might be blank, i'm having trouble with the SELECT statement.
anyone have any ideas?
Thanks,
inger
in CASES, I have CASE_ID, REACTION_ID_EYES and REACTION_ID_SYSTEM.
in REACTIONS, I have REACTION_ID, REACTION_TYPE and REACTION_NAME.
so it looks like this:
[tt]
CASES
Case_ID Reaction_ID_Eyes Reaction_ID_System
42 13 16
43 14 15
44 13 <NULL>
45 <NULL> 16
REACTIONS
Reaction_ID Reaction_Name Reaction_Type
13 pink eye eyes
14 dry eye eyes
15 cooties system
16 funk system
Ultimately, I'd like to be able to retrieve data that looks like this:
CASE_ID REACTION_NAME_EYES REACTION_NAME_SYSTEM
42 pink eye funk
43 dry eye cooties
44 pink eye (none)
45 (none) funk
...but because one of the reactions for a particular case might be blank, i'm having trouble with the SELECT statement.
anyone have any ideas?
Thanks,
inger