salix/services/db/install/changes/1.0.4-cau6508/09-agencyModeZone.sql

17 lines
469 B
SQL

USE `vn`;
CREATE
OR REPLACE ALGORITHM = UNDEFINED
DEFINER = `root`@`%`
SQL SECURITY DEFINER
VIEW `vn`.`agencyModeZone` AS
SELECT
`a`.`Id_Agencia` AS `agencyModeFk`,
`a`.`zona` AS `zone`,
`a`.`price` AS `price`,
`a`.`Id_Article` AS `itemFk`,
`a`.`warehouse_id` AS `warehouseFk`,
`a`.`porte_minimo` AS `minimCost`,
`a`.`inflacion` AS `inflation`
FROM
`vn2008`.`Agencias_zonas` `a`;