Problem
Find the SQL code for the following business question. The HR Department is working on the overall salary budget for the organization for the fiscal year 2023. For this analysis, they need to see the total salaries for each department for only the employees that are still active. The query will include the department name and the total salaries (TtlSal) for that department (again, for only the active employees). The results must be sorted by department name and include the elements in the order listed.