16 lines
383 B
SQL
16 lines
383 B
SQL
DELIMITER $$
|
|
CREATE OR REPLACE DEFINER=`vn-admin`@`localhost` PROCEDURE `vn`.`getDayExpeditions`()
|
|
BEGIN
|
|
|
|
SELECT
|
|
e.id as expeditionFk,
|
|
date_format(e.created,'%Y-%m-%d') as expeditionDate,
|
|
e.ticketFk,
|
|
t.routeFk as routeFk
|
|
FROM expedition e
|
|
INNER JOIN ticket t ON t.id = e.ticketFk
|
|
WHERE DATE(e.created) = util.VN_CURDATE();
|
|
|
|
END$$
|
|
DELIMITER ;
|