I have a small question, how can I get highest salary
from male
and female
column.
------+----------------+----------------+
Id. Gender. Salary
-----+-----------------+----------------+
1. F. 3000
2. M. 4000
3. F. 3500
4. M 3999
This is what I have tried
SELECT MAX(Salary) AS max_salary
FROM emp
GROUP BY Salary
HAVING
I don't know furthur how to achieve.
I have posted this from my mobile phone so please help me by editing the question.
Please help as my MySQL knowledge is limited.