How have you utilized SQL or Python to automate repetitive data extraction or reporting tasks?
For this hands-on version, demonstrate the SQL portion by producing a recurring monthly report from the provided program and work-log data. Include active programs even when they have no qualifying work logs.
program_id, program_name, report_owner, total_approved_hours, approved_entries, and active_log_daystotal_approved_hours descending, then program_id ascending| Column | Type | Description |
|---|---|---|
| program_idPK | INT | Unique program identifier |
| program_name | VARCHAR(100) | Program name |
| status | VARCHAR(20) | Current program status |
| report_owner | VARCHAR(100) | Person responsible for the report |
| Column | Type | Description |
|---|---|---|
| log_idPK | INT | Unique work-log identifier |
| program_id | INT | Referenced program identifier |
| work_date | DATE | Date on which work was recorded |
| hours | NUMERIC(8,2) | Hours recorded for the work log |
| entry_status | VARCHAR(20) | Approval status of the work log |