Your question is SQL Join with Aggregation. Start with the requirements and the two tables on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
The Alten Delivery Centre Spain needs a quarterly view of approved, billable work logged against active delivery projects. Write a PostgreSQL query that joins project and work-log data and returns only projects meeting the minimum effort threshold.
2025-01-01 through 2025-03-31.High, otherwise as Standard.| Column | Type | Description |
|---|---|---|
| project_idPK | INTEGER | Unique project identifier |
| project_name | VARCHAR(100) | Project name |
| delivery_centre | VARCHAR(80) | Alten delivery centre responsible for the project |
| manager_name | VARCHAR(100) | Assigned project manager |
| project_status | VARCHAR(20) | Current project lifecycle status |
| Column | Type | Description |
|---|---|---|
| log_idPK | INTEGER | Unique work-log identifier |
| project_id | INTEGER | Project associated with the work log |
| logged_on | DATE | Date on which work was recorded |
| hours | NUMERIC(8,2) | Recorded work hours |
| log_status | VARCHAR(20) | Approval status of the work log |
| is_billable | BOOLEAN | Indicates whether the work is billable |