salix/db/routines/vn/views/payrollCenter.sql

13 lines
382 B
SQL

CREATE OR REPLACE DEFINER=`root`@`localhost`
SQL SECURITY DEFINER
VIEW `vn`.`payrollCenter`
AS SELECT `b`.`cod_centro` AS `codCenter`,
`b`.`Centro` AS `name`,
`b`.`nss_cotizacion` AS `nss`,
`b`.`domicilio` AS `street`,
`b`.`poblacion` AS `city`,
`b`.`cp` AS `postcode`,
`b`.`empresa_id` AS `companyFk`,
`b`.`codempresa` AS `companyCode`
FROM `vn2008`.`payroll_centros` `b`