salix/services/db/install/changes/1.0.9/05-clientSample.sql

16 lines
444 B
SQL

USE `vn`;
CREATE
OR REPLACE ALGORITHM = UNDEFINED
DEFINER = `root`@`%`
SQL SECURITY DEFINER
VIEW `clientSample` AS
SELECT
`e`.`id` AS `id`,
`e`.`Id_Cliente` AS `clientFk`,
`e`.`escritos_id` AS `typeFk`,
`e`.`fecha` AS `created`,
`e`.`Id_Trabajador` AS `workerFk`,
`e`.`userFk` AS `userFk`,
`e`.`empresa_id` AS `companyFk`
FROM
`vn2008`.`escritos_det` `e`;