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

19 lines
576 B
MySQL
Raw Permalink Normal View History

CREATE OR REPLACE DEFINER=`root`@`localhost`
SQL SECURITY DEFINER
VIEW `vn2008`.`Agencias`
AS SELECT `am`.`id` AS `Id_Agencia`,
`am`.`name` AS `Agencia`,
`am`.`description` AS `description`,
`am`.`deliveryMethodFk` AS `Vista`,
`am`.`m3` AS `m3`,
`am`.`web` AS `web`,
`am`.`agencyFk` AS `agency_id`,
`am`.`inflation` AS `inflacion`,
`am`.`isVolumetric` AS `is_volumetric`,
`am`.`reportMail` AS `send_mail`,
`am`.`isActive` AS `tpv`,
`am`.`code` AS `code`,
`am`.`showAgencyName` AS `show_AgencyName`,
`am`.`isRiskFree` AS `isRiskFree`
FROM `vn`.`agencyMode` `am`