How to calculate the grades?

My question here is that I wish to calculate the grades achieved by a user based on his marks. I have 3 tables MARKS, GRADES and RESULTS. Their table structure is such:

MARKS: ID, Marks_obtained

GRADES: ID, GradeA, GradeB..... GradeE (these fields contain the LOWER LIMIT of it's respective grade)

RESULTS: ID, Grade_achieved, Marks_obtained.......

SO when MARKS.ID = GRADES.ID, compare the values of marks_obtained with each Grade and insert this value into RESULTS.Grade_achieved, and other values of ID and Marks_obtained....

Thanks in advance. :)

November 3rd, 2013 6:49am

Can you show us sample data + desired result? BTW what version are you using?
Free Windows Admin Tool Kit Click here and download it now
November 3rd, 2013 7:16am

Can you show us sample data + desired result? BTW what version are
November 3rd, 2013 7:30am

Calculated based on what? Why not positing CREATE TABLE + INSERT INTO... statements and provide a desired result ?
Free Windows Admin Tool Kit Click here and download it now
November 3rd, 2013 10:38am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics