Changes between Version 3 and Version 4 of AdvancedDatabaseReports
- Timestamp:
- 12/19/22 17:14:52 (2 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
AdvancedDatabaseReports
v3 v4 8 8 9 9 {{{#!sql: 10 SELECT d.driver_id, SUM(d.km_travelled) as km_travelled_with_driver, SUM(pay.total_sum_payed) as total_price_paid 10 SELECT d.driver_id, SUM(d.km_travelled) as km_travelled_with_driver, 11 SUM(pay.total_sum_payed) as total_price_paid 11 12 FROM request r 12 13 JOIN drive d ON r.request_id = d.request_id 13 14 JOIN payment pay ON pay.passenger_id = r.passenger_id 14 WHERE r.passenger_id = '77d9c766-e0c1-4e53-86d0-bafc3101a1ac' AND d.start_time between now() and now() - interval '2 months' 15 WHERE r.passenger_id = '77d9c766-e0c1-4e53-86d0-bafc3101a1ac' AND 16 d.start_time between now() and now() - interval '2 months' 15 17 GROUP BY d.driver_id }}}