Write SQL and PySpark transformations using self-joins, split, explode, and group-by aggregations. Use the employees table and include only active direct reports with non-empty tags.
manager_id, manager_name, tag, direct_report_count, and total_salary.Unknown manager.manager_id, then normalized tag.| Column | Type | Description |
|---|---|---|
| employee_idPK | INT | Unique employee identifier |
| employee_name | VARCHAR(100) | Employee full name |
| manager_id | INT | Employee ID of the direct manager |
| skill_tags | VARCHAR(255) | Comma-separated employee skill tags |
| annual_salary | DECIMAL(12,2) | Annual employee salary |
| is_active | BOOLEAN | Whether the employee is active |