B
boyratchet via AccessMonster.com
Students: StudentID, CompanyID
Companies: CompanyID, CompanyName
ClassRegister: ClassRegisterID, StudentID, ClassID
Classes: ClassID, InstructorID, LocationID, StatusID
Instructors: InstructorID, InstructorName
Locations: LocationID, LocationName
Status: StatusID, StatusFlag
Given the tables above (where there is a many to many relationship between
Classes and Students handled by the ClassRegister table), I have been trying
to write a query that will be used in a report with the following structure:
Company
-Location
--Class: Instructor, Status
---Student
I have tried a 100 different queries, and none of them work. I can get part
way there, joining ((Students and Comapnies), ClassRegister), Classes, but
the moment I try to go beyond this, it all goes to pieces.
Any help I could get on this would be appreciated.
BTW Does anybody know of a good book/teaching app for learning SQL?
Companies: CompanyID, CompanyName
ClassRegister: ClassRegisterID, StudentID, ClassID
Classes: ClassID, InstructorID, LocationID, StatusID
Instructors: InstructorID, InstructorName
Locations: LocationID, LocationName
Status: StatusID, StatusFlag
Given the tables above (where there is a many to many relationship between
Classes and Students handled by the ClassRegister table), I have been trying
to write a query that will be used in a report with the following structure:
Company
-Location
--Class: Instructor, Status
---Student
I have tried a 100 different queries, and none of them work. I can get part
way there, joining ((Students and Comapnies), ClassRegister), Classes, but
the moment I try to go beyond this, it all goes to pieces.
Any help I could get on this would be appreciated.
BTW Does anybody know of a good book/teaching app for learning SQL?