23 lines
709 B
SQL
23 lines
709 B
SQL
CREATE OR REPLACE DEFINER=`root`@`localhost`
|
|
SQL SECURITY DEFINER
|
|
VIEW `vn2008`.`Ordenes`
|
|
AS SELECT `tr`.`id` AS `Id_ORDEN`,
|
|
`tr`.`description` AS `ORDEN`,
|
|
`tr`.`requesterFk` AS `requesterFk`,
|
|
`tr`.`attenderFk` AS `attenderFk`,
|
|
`tr`.`quantity` AS `CANTIDAD`,
|
|
`tr`.`itemFk` AS `Id_ARTICLE`,
|
|
`tr`.`price` AS `PRECIOMAX`,
|
|
`tr`.`isOk` AS `isOk`,
|
|
`tr`.`saleFk` AS `Id_Movimiento`,
|
|
`tr`.`ticketFk` AS `ticketFk`,
|
|
`tr`.`response` AS `COMENTARIO`,
|
|
`tr`.`created` AS `odbc_date`,
|
|
`tr`.`ordered` AS `datORDEN`,
|
|
`tr`.`shipped` AS `datTICKET`,
|
|
`tr`.`salesPersonCode` AS `CodVENDEDOR`,
|
|
`tr`.`clientFk` AS `Id_CLIENTE`,
|
|
`tr`.`total` AS `TOTAL`,
|
|
`tr`.`buyed` AS `datCOMPRA`
|
|
FROM `vn`.`ticketRequest` `tr`
|