Uber operations team needs to quantify the additional revenue generated through surge pricing. A trip is considered a Surge Trip if the surge_multiplier is strictly greater than 1.0. Conversely, if the multiplier is exactly 1.0, it is a Non-Surge Trip.
Your task is to calculate the total revenue for Surge Trips, the total revenue for Non-Surge Trips, and the absolute difference between the two.
| trip_id(INTEGER) | fare_amount(DECIMAL) | surge_multiplier(DECIMAL) |
|---|---|---|
| 1 | 20 | 1.5 |
| 2 | 15 | 1 |
| 3 | 30 | 2 |
| 4 | 10 | 1 |
| 5 | 25 | 1.2 |
| 6 | 12 | 1 |
| surge_revenue(DECIMAL) | non_surge_revenue(DECIMAL) | revenue_difference(DECIMAL) |
|---|---|---|
| 120 | 37 | 83 |