Hi friends
the below is my join query for getting some result
createprocedure sp_bindexamclass(@classid int,@examid int)asbeginselect en.ExamName,St.Standered_name,Sr.SubjectName,ec.Maximummark,ec.Minimummark from Standered_details St innerjoin ExamClasssetting_details ec on St.Standered_id=ec.Classid innerjoin SubjectRegistration_details Sr on Sr.SubjectCode=ec.subjectid innerjoin ExamNameSetting_details en on en.ExamId=ec.ExamId where ec.Classid=@classid and ec.ExamId=@examid end
Table relation is
1.standered details
relational key is
2.SubjectRegistration_details
relational key is
Examclasssetting_details
3 .ExamNamesetting_details
relational key is
all the table contains data for join query. but i couldnt get the desired result. what is the problem in join query.
the below is my join query for getting some result
createprocedure sp_bindexamclass(@classid int,@examid int)asbeginselect en.ExamName,St.Standered_name,Sr.SubjectName,ec.Maximummark,ec.Minimummark from Standered_details St innerjoin ExamClasssetting_details ec on St.Standered_id=ec.Classid innerjoin SubjectRegistration_details Sr on Sr.SubjectCode=ec.subjectid innerjoin ExamNameSetting_details en on en.ExamId=ec.ExamId where ec.Classid=@classid and ec.ExamId=@examid end
Table relation is
1.standered details
relational key is
standered_idto
classid(fk) of Examclasssetting_details
2.SubjectRegistration_details
relational key is
subjectcodeto
subjectidof
Examclasssetting_details
3 .ExamNamesetting_details
relational key is
ExamIdto
ExamIdof Examclasssetting_deatails
all the table contains data for join query. but i couldnt get the desired result. what is the problem in join query.