20 lines
561 B
SQL
20 lines
561 B
SQL
CREATE OR REPLACE DEFINER=`vn`@`localhost`
|
|
SQL SECURITY DEFINER
|
|
VIEW `vn`.`expeditionScan_Monitor`
|
|
AS SELECT `rs`.`id` AS `truckFk`,
|
|
`rs`.`eta` AS `ETD`,
|
|
`rs`.`description` AS `description`,
|
|
`ep`.`id` AS `palletFk`,
|
|
`ep`.`position` AS `position`,
|
|
`ep`.`built` AS `built`,
|
|
`es`.`id` AS `scanFk`,
|
|
`es`.`expeditionFk` AS `expeditionFk`,
|
|
`es`.`scanned` AS `scanned`
|
|
FROM (
|
|
(
|
|
`vn`.`roadmapStop` `rs`
|
|
LEFT JOIN `vn`.`expeditionPallet` `ep` ON(`ep`.`truckFk` = `rs`.`id`)
|
|
)
|
|
LEFT JOIN `vn`.`expeditionScan` `es` ON(`es`.`palletFk` = `ep`.`id`)
|
|
)
|