17 lines
495 B
SQL
17 lines
495 B
SQL
CREATE OR REPLACE DEFINER=`root`@`localhost`
|
|
SQL SECURITY DEFINER
|
|
VIEW `vn2008`.`expeditions`
|
|
AS SELECT `e`.`id` AS `expeditions_id`,
|
|
`e`.`agencyModeFk` AS `agency_id`,
|
|
`e`.`ticketFk` AS `ticket_id`,
|
|
`e`.`freightItemFk` AS `EsBulto`,
|
|
`e`.`created` AS `odbc_date`,
|
|
`e`.`counter` AS `counter`,
|
|
`e`.`workerFk` AS `workerFk`,
|
|
`e`.`externalId` AS `externalId`,
|
|
`p`.`itemFk` AS `Id_article`
|
|
FROM (
|
|
`vn`.`expedition` `e`
|
|
LEFT JOIN `vn`.`packaging` `p` ON(`p`.`id` = `e`.`packagingFk`)
|
|
)
|