salix/db/routines/vn2008/views/Cubos.sql

22 lines
610 B
MySQL
Raw Permalink Normal View History

CREATE OR REPLACE DEFINER=`root`@`localhost`
SQL SECURITY DEFINER
VIEW `vn2008`.`Cubos`
AS SELECT `p`.`id` AS `Id_Cubo`,
`p`.`volume` AS `Volumen`,
`p`.`width` AS `X`,
`p`.`depth` AS `Y`,
`p`.`height` AS `Z`,
`p`.`isPackageReturnable` AS `Retornable`,
`p`.`created` AS `odbc_date`,
`p`.`itemFk` AS `item_id`,
`p`.`price` AS `pvp`,
`p`.`cubicPackage` AS `bultoCubico`,
`p`.`value` AS `Valor`,
`p`.`packagingReturnFk` AS `idCubos_Retorno`,
`p`.`lower` AS `Bajan`,
`p`.`upload` AS `Suben`,
`p`.`base` AS `Base`,
`p`.`isBox` AS `box`,
`p`.`returnCost` AS `costeRetorno`
FROM `vn`.`packaging` `p`