DROP PROCEDURE IF EXISTS `vn`.`zone_getAvailable`; DELIMITER $$ CREATE DEFINER=`root`@`%` PROCEDURE `vn`.`zone_getAvailable`(vAddress INT, vLanded DATE) BEGIN CALL zone_getFromGeo(address_getGeo(vAddress)); CALL zone_getOptionsForDate(vLanded); SELECT * FROM tmp.zoneOption; DROP TEMPORARY TABLE tmp.zone, tmp.zoneOption; END$$ DELIMITER ;