2024-01-15 11:31:03 +00:00
|
|
|
DELIMITER $$
|
2024-08-20 08:06:10 +00:00
|
|
|
CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `vn`.`getInfoDelivery`(vRouteFk INT)
|
2024-01-15 11:31:03 +00:00
|
|
|
BEGIN
|
|
|
|
SELECT s.name, s.street, s.city, s.nif, s.postCode FROM vn.route r
|
|
|
|
JOIN vn.agencyMode am ON r.agencyModeFk = am.id
|
|
|
|
JOIN vn.agency a ON am.agencyFk = a.id
|
|
|
|
JOIN vn.supplier s ON a.supplierFk = s.id
|
|
|
|
WHERE r.id = vRouteFk;
|
|
|
|
END$$
|
|
|
|
DELIMITER ;
|