salix/services/db/install/changes/1.0.4-cau6508/06-specialPrice.sql

14 lines
358 B
SQL

USE `vn`;
CREATE
OR REPLACE ALGORITHM = UNDEFINED
DEFINER = `root`@`%`
SQL SECURITY DEFINER
VIEW `vn`.`specialPrice` AS
SELECT
`p`.`Id_PrecioEspecial` AS `id`,
`p`.`Id_Cliente` AS `clientFk`,
`p`.`Id_Article` AS `itemFk`,
`p`.`PrecioEspecial` AS `value`
FROM
`vn2008`.`PreciosEspeciales` `p`;