Given a table of Thumbtack customer interactions and service bookings, write a query to find the average time elapsed between a customer's first search and their first confirmed booking.
Include only customers with both events, and exclude confirmed bookings that occurred before the customer's first search.
average_elapsed_hours, rounded to two decimal places.| Column | Type | Description |
|---|---|---|
| interaction_idPK | INT | Unique interaction identifier |
| customer_id | INT | Thumbtack customer identifier |
| interaction_type | VARCHAR(30) | Interaction type, such as search or view |
| occurred_at | TIMESTAMP | Timestamp when the interaction occurred |
| Column | Type | Description |
|---|---|---|
| booking_idPK | INT | Unique booking identifier |
| customer_id | INT | Thumbtack customer identifier |
| status | VARCHAR(20) | Booking status |
| booked_at | TIMESTAMP | Timestamp when the booking reached its recorded status |