Hi,
I have a complex database issue. There are 3 tables that I have to join. Here are what the tables look like:
TABLE: MajorListings
MajorName MajorCode
----------------------
Pre-Med XBIO
History HIST
Theology THEO
TABLE: studentInfo
studentID StudentMajorCode
----------------------------
3215456 HIST
8681235 THEO
3421343 XBIO
TABLE: submittedStudents
studentID Results
--------------------
3215456 answer
8681235 message
3421343 problem
I need this information to be displayed as follows: the majorCodes that had students with the results not empty, should be displayed in alphabetical order. Next to the major the total number of answer (where result=answer) for that major should be displayed as well as the total message (result=message) and total problem (result=problem). It's pretty difficult for me to do since I haven't had much experience joining tables.
Thank you for your help.
Ryan
I have a complex database issue. There are 3 tables that I have to join. Here are what the tables look like:
TABLE: MajorListings
MajorName MajorCode
----------------------
Pre-Med XBIO
History HIST
Theology THEO
TABLE: studentInfo
studentID StudentMajorCode
----------------------------
3215456 HIST
8681235 THEO
3421343 XBIO
TABLE: submittedStudents
studentID Results
--------------------
3215456 answer
8681235 message
3421343 problem
I need this information to be displayed as follows: the majorCodes that had students with the results not empty, should be displayed in alphabetical order. Next to the major the total number of answer (where result=answer) for that major should be displayed as well as the total message (result=message) and total problem (result=problem). It's pretty difficult for me to do since I haven't had much experience joining tables.
Thank you for your help.
Ryan