Completion time by category
The evanston311 data includes a date_created timestamp from when each request was created and a date_completed timestamp for when it was completed. The difference between these tells us how long a request was open.
Which category of Evanston 311 requests takes the longest to complete?
Deze oefening maakt deel uit van de cursus
Exploratory Data Analysis in SQL
Oefeninstructies
- Compute the average difference between the completion timestamp and the creation timestamp by
category. - Order the results with the largest average time to complete the request first.
Praktische interactieve oefening
Probeer deze oefening eens door deze voorbeeldcode in te vullen.
-- Select the category and the average completion time by category
SELECT ___,
___ AS completion_time
FROM evanston311
___
-- Order the results
___;