Changes between Version 13 and Version 14 of AdvancedDatabaseReports
- Timestamp:
- 01/29/23 18:57:00 (22 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
AdvancedDatabaseReports
v13 v14 13 13 14 14 {{{#!sql: 15 SELECT d.driver_id, SUM(d.km_travelled) as km_travelled_with_driver,15 SELECT uuid_generate_v4() as id, pay.passenger_id, d.driver_id, SUM(d.km_travelled) as km_travelled_with_driver, 16 16 SUM(pay.total_sum_payed) as total_price_paid, SUM(pay.total_sum_payed)/SUM(d.km_travelled) as price_per_km 17 17 FROM request r 18 18 JOIN drive d ON r.request_id = d.request_id 19 JOIN payment pay ON pay.passenger_id = r.passenger_id 20 WHERE r.passenger_id = '87da7c89-fc2e-44a0-9bfa-d89de68c2a22' 21 GROUP BY d.driver_id 22 ORDER BY price_per_km ASC 19 JOIN payment pay ON d.drive_id = pay.drive_id 20 GROUP BY d.driver_id, pay.passenger_id 21 ORDER BY price_per_km asc 23 22 }}} 24 23