Hey people sorry if this question isnt really clean but it goes as following
i have a homework quest which goes along the lines of this. Write a quer to return how many subjects this student takes with the LastName "Field"
the three tables are:
Students:
StudentID
FirstName
LastName
StudentCourses:
StudentCourseID
StudentID
CourseID
Courses:
Maths
Science
English
P.E
Drama
Film Studies
I have something like
SELECT Students.studentID,
Students.Lastname,
Students.CourseID
FROM Students
WHERE Students.LastName = "Field"
INNER JOIN StudentCourses
ON Student.CourseID = StudentCourses.CourseID
FULL JOIN Student
ON Student.RoleID = Courses.CourseID
This is written so i cannot test it but does this seem correct to anyone?