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

9 lines
276 B
SQL

CREATE OR REPLACE DEFINER=`root`@`localhost`
SQL SECURITY DEFINER
VIEW `vn2008`.`PreciosEspeciales`
AS SELECT `sp`.`id` AS `Id_PrecioEspecial`,
`sp`.`clientFk` AS `Id_Cliente`,
`sp`.`itemFk` AS `Id_Article`,
`sp`.`value` AS `PrecioEspecial`
FROM `vn`.`specialPrice` `sp`