I have 3 tables that look something like this:
Table A
Student id | Course Name |Course Section
1 | English |A
1 | Math |B
2 | Chemistry |C
2 | History |A
Table B
Course Name |Course Section |Instructor ID |Percentage
Math |B |67890 |50
Math |B |54321 |50
History |A |67890 |100
English |A |12345 |100
Chemistry |C |09876 |100
Table C
Instructor ID |Instructor Email
09876 | [email protected]
12345 |[email protected]
54321 |[email protected]
67890 |[email protected]
I want the output of my query to look like this:
StudentID Course Name Section Instructor Email
1 English A [email protected]
1 Math B [email protected];[email protected]
2 Chemistry C [email protected]
2 History A [email protected]
I have tried creating a table variable, using coalesce, and a couple of other suggestions, but I'm not having any success. Any ideas would be greatly appreciated.
Thank you.
eileen