how to find max salary and min salary,employee name,and department name
suppose we have the following database table
emp_no | emp name | branch name | subject | mark |
4101 | jhon | a1 | mathmatex | 82.97 |
4122 | peter | a1 | mathmatex | 83.09 |
4123 | nelson | a1 | physics | 89.09 |
4129 | suzan | b1 | mathmatex | 90.00 |
4125 | fredrek | a1 | physics | 99.00 |
i need the result as
emp_no | emp name | branch name | subject | max | emp_no | emp name | branch name | subject | min |
4129 | suzan | b1 | mathmatex | 90 | 4101 | jhon | a1 | mathmatex | 82.97 |
4125 | fredrek | a1 | physics | 99 | 4123 | nelson | a1 | physics | 89.09 |