I want sql command to output the data like this:
Did you try anything by yourself?
Having data for employee row-wise would be simple, like:
SELECT
em.emp_name,
sa.income
FROM
Employee em
INNER JOIN
Salary sa
ON em.emp_id = sa.emp_id
But, what you ask after this is to collate all the same employee id row data to column data. It would not be simple through query. I would suggest you to take the above query data and then mould it into the format required in your frontend.