The following statement selects from subqueries in the FROM clause and for each department returns the total employees and salaries as a decimal value of all the departments.
SELECT a.department_id "Department",
to_char(100*a.num_emp/b.total_count,'990D00') "%_Employees",
to_char(100*a.sal_sum/b.total_sal,'990D00') "%_Salary"
FROM
(SELECT department_id, COUNT(*) num_emp, SUM(salary) sal_sum
FROM hr.employees
GROUP BY department_id) a,
(SELECT COUNT(*) total_count, SUM(salary) total_sal
FROM hr.employees) b
ORDER BY a.department_id