salix/print/templates/reports/zone/sql/zone.sql

9 lines
200 B
MySQL
Raw Normal View History

2020-09-25 12:45:00 +00:00
SELECT
r.id,
r.time,
am.name agencyName,
v.numberPlate plateNumber
FROM route r
JOIN agencyMode am ON am.id = r.agencyModeFk
JOIN vehicle v ON v.id = r.vehicleFk
2021-04-27 08:29:09 +00:00
WHERE r.id = ?