Hi, I am using Join in sql for first time with respect to many tables, I have got error with this :
I have three tables,
Semester table
StudentID Department Semester
1 1 1
Course Table
CourseID CourseName Semester
1 S.E 1
2 D.B 1
ExamAttend Table(foreign keys as StudentID and CourseID)
StudentID CourseID Marks
1 1 88
1 2 90
I am trying to get the reslut through
Select CourseName,Marks
from CourseID
Inner Join ExamAttend on (
Select CourseID from Course as c, Semester as s where s.Semester = c.Semester
) = ExamAttend.CourseID;
This query is Showing me error that subquery cannot return multiple query when used with '='
Anyone can suggest me a way to get the query done? Am i missing any syntax with inner join?