7 lines
236 B
MySQL
7 lines
236 B
MySQL
|
CREATE OR REPLACE DEFINER=`root`@`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
|