salix/services/db/install/changes/1.2-CHECK/12-ticketRequest.sql

20 lines
562 B
MySQL
Raw Normal View History

2018-10-30 11:17:22 +00:00
USE `vn`;
CREATE
OR REPLACE ALGORITHM = UNDEFINED
DEFINER = `root`@`%`
SQL SECURITY DEFINER
VIEW `ticketRequest` AS
SELECT
`t`.`Id_ORDEN` AS `id`,
`t`.`ORDEN` AS `description`,
`t`.`requesterFk` AS `requesterFk`,
2018-10-30 11:17:22 +00:00
`t`.`CodCOMPRADOR` AS `atenderFk`,
`t`.`CANTIDAD` AS `quantity`,
`t`.`PRECIOMAX` AS `price`,
`t`.`isOk` AS `isOk`,
2018-10-30 11:17:22 +00:00
`t`.`Id_Movimiento` AS `saleFk`,
`t`.`ticketFk` AS `ticketFk`,
2018-10-30 11:17:22 +00:00
`t`.`odbc_date` AS `created`
FROM
`vn2008`.`Ordenes` `t`;