I have a GradeConversionCriteria table for Student Exam that has three columns:
FromNumber
ToNumber
Grade
I want to make a user defined function that will return the Grade when I input marksobtained and totalmarks
If a student gets 45 marks out of 50 I want to return the grade(A,B,C etc.) he achieved.
You want something like this query for your function:
Then you would just do something like this to get the grades: