My output should be like this

No.of Employees SALARY
-------------------------------------------------------
Department Permanent Temp Total Permanent Temp Total
-------------------------------------------------------
Admin 2 1 3 25000 15000 40000
General sales 2 2 4 15000 15000 30000

But I tried and got this result...