salix/db/routines/vn/views/saleSaleTracking.sql

7 lines
234 B
MySQL
Raw Normal View History

2024-08-20 08:06:10 +00:00
CREATE OR REPLACE DEFINER=`vn`@`localhost`
SQL SECURITY DEFINER
VIEW `vn`.`saleSaleTracking`
AS SELECT DISTINCT `st`.`saleFk` AS `saleFk`
FROM `vn`.`saleTracking` `st`
WHERE `st`.`created` >= `util`.`VN_CURDATE`() + INTERVAL -1 DAY