J
James D.
Background:
I have two tables; Student ; Courses.
The student table has the following fields:
Student ID
Name
Age
Grade
Address
Phone Number
The Courses table has the following fields:
RecordID
StudentID
StudenSemesterID
Course
Grade
Date
In this table it is common to have StudentID and SemesterID repeated for
each course(up to five). Potentially each student may have up to 5
records(lines per semester, not to mention past semesters(Different
StudentSemesterID).
StudentID SemesterID Course Grade Date
112 334 math a
112 334 computer a
112 334 sciense a
Goal:
There are three different courses I am interested in being math, science,
computers
The grade must be an A
I need to count the number of students who took either math AND science OR
math AND computers AND had a grade of an A.
I also need to count the number of StudentSemesters where they took either
math and science or math and computers and had a grade of an A.
I seriously can’t seem to figure this one out. Any suggestions would be
greatly appreciated.
All the best.
James D.
I have two tables; Student ; Courses.
The student table has the following fields:
Student ID
Name
Age
Grade
Address
Phone Number
The Courses table has the following fields:
RecordID
StudentID
StudenSemesterID
Course
Grade
Date
In this table it is common to have StudentID and SemesterID repeated for
each course(up to five). Potentially each student may have up to 5
records(lines per semester, not to mention past semesters(Different
StudentSemesterID).
StudentID SemesterID Course Grade Date
112 334 math a
112 334 computer a
112 334 sciense a
Goal:
There are three different courses I am interested in being math, science,
computers
The grade must be an A
I need to count the number of students who took either math AND science OR
math AND computers AND had a grade of an A.
I also need to count the number of StudentSemesters where they took either
math and science or math and computers and had a grade of an A.
I seriously can’t seem to figure this one out. Any suggestions would be
greatly appreciated.
All the best.
James D.