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

12 lines
387 B
SQL

CREATE OR REPLACE DEFINER=`root`@`localhost`
SQL SECURITY DEFINER
VIEW `vn2008`.`proveedores_clientes`
AS SELECT `Proveedores`.`Id_Proveedor` AS `Id_Proveedor`,
`Proveedores`.`Proveedor` AS `Proveedor`,
`Clientes`.`id_cliente` AS `Id_Cliente`,
`Clientes`.`cliente` AS `Cliente`
FROM (
`vn2008`.`Proveedores`
JOIN `vn2008`.`Clientes` ON(`Proveedores`.`NIF` = `Clientes`.`if`)
)