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

12 lines
336 B
MySQL
Raw Normal View History

CREATE OR REPLACE DEFINER=`root`@`localhost`
SQL SECURITY DEFINER
VIEW `vn2008`.`mandato`
AS SELECT `m`.`id` AS `id`,
`m`.`clientFk` AS `Id_Cliente`,
`m`.`companyFk` AS `empresa_id`,
`m`.`code` AS `Id_mandato`,
`m`.`created` AS `FAlta`,
`m`.`finished` AS `Fbaja`,
`m`.`mandateTypeFk` AS `idmandato_tipo`
FROM `vn`.`mandate` `m`