I have a SQL table called StudentMarks.which consist of StudentID,SubjectName,SubjectMark
I want to write a stored procedure to retrieve StudentID,TotalSubjectMarks,MarksAverage,ClassPosition for each student.I need to find the ClassPosition from the MarksAverage. for the student who has the highest MarksAverage, ClassPosition should be 1.others should get the position as 2,3,4.... Can any one help me with this???
Thank You.