- "Given table `Trips` with columns `id`, `client_id`, `driver_id`, `city_id`, `status`, and `request_at`, where `id` is the primary key. The table holds all taxi trips. Each trip has a unique `id`, while `client_id` and `driver_id` are foreign keys to the `users_id` in the `Users` table.\n\nStatus is an ENUM (category) type of ('completed', 'cancelled_by_driver', 'cancelled_by_client').\n\nGiven table `Users` with columns `users_id`, `banned`, and `role`, users_id is the primary key (column with unique values) for htis table. The table holds all users. Each user has a unique `users_id` and `role` is an ENUM type of ('client', 'driver', 'partner'). `banned` is an ENUM category of type ('Yes', 'No'). The cancellation rate is computed by dividing the number of canceled (by client or driver) requests with unbanned users by the total number of requests with unbanned users on that day.\n\nWrite a solution to find the cancellation rate of requests with unbanned users (both client and driver must not be banned) each day between \"2013-10-01\" and \"2013-10-03\". Round the cancellation rate to two decimal points.",
0 commit comments