I have a mysql table tbl_exam
user_ID | User_name | semester | math | english |
1 | John | 1st | 67 | 73 |
1 | John | 2nd | 82 | 59 |
after this, i want to compare 1st semester marks with 2nd semester.i.e Math is improving and English is degrading
user_ID | User_name | math | english |
1 | John | good | bad |
I just fetch the result but have no idea how to solve.Any help would be appreciated
Try this: