How would you write a SQL query to find drivers who didn’t take a trip in their first 7 days?
Treat the first 7 days as the interval from signup time, inclusive, through signup time plus 7 days, exclusive. Consider only completed trips and exclude drivers whose signup timestamp is unknown.
driver_id, signup_atdriver_id ascending| Column | Type | Description |
|---|---|---|
| driver_idPK | INT | Unique driver identifier |
| signup_at | TIMESTAMP | Timestamp when the driver signed up |
| Column | Type | Description |
|---|---|---|
| trip_idPK | INT | Unique trip identifier |
| driver_id | INT | Driver assigned to the trip |
| trip_started_at | TIMESTAMP | Timestamp when the trip started |
| status | VARCHAR(20) | Trip completion status |