Codington
0 of 8 problems solved • 0%

Exercise prompt

Read the Date of a Run

The started_at timestamp records both a day and a time. Use CAST(started_at AS date) to return the calendar day. Keep the deployment ID beside it so each result still identifies a run.

Example

SELECT CAST(started_at AS date) AS log_day FROM deployments WHERE id = 20;

Your task

For deployments 201 and 216, return id and the start date as run_day.

Opening the database…