I am having the following table
Student Id | Subject A | Subject B | Subject C | Subject D |
---|---|---|---|---|
1 | 98 | 87 | 76 | 100 |
2 | 90 | 100 | 64 | 71 |
This table contains information about the marks scored by students in various subject.
Now I need to find the maximum mark scored by each student among the various subject
I need the output to be like
Student Id | Subjects | Maximum Mark |
---|---|---|
1 | Subject D | 100 |
2 | Subject B | 100 |