salix/services/db/install/changes/1.0.6/ekt.sql

46 lines
1.8 KiB
SQL

USE `edi`;
CREATE
OR REPLACE ALGORITHM = UNDEFINED
DEFINER = `root`@`%`
SQL SECURITY DEFINER
VIEW `edi`.`ekt` AS
SELECT
`vn2008`.`buy_edi`.`id` AS `id`,
`vn2008`.`buy_edi`.`barcode` AS `barcode`,
`vn2008`.`buy_edi`.`entry_year` AS `entry_year`,
`vn2008`.`buy_edi`.`delivery_number` AS `delivery_number`,
`vn2008`.`buy_edi`.`fec` AS `fec`,
`vn2008`.`buy_edi`.`hor` AS `hor`,
`vn2008`.`buy_edi`.`now` AS `now`,
`vn2008`.`buy_edi`.`ptj` AS `ptj`,
`vn2008`.`buy_edi`.`ref` AS `ref`,
`vn2008`.`buy_edi`.`item` AS `item`,
`vn2008`.`buy_edi`.`pac` AS `pac`,
`vn2008`.`buy_edi`.`qty` AS `qty`,
`vn2008`.`buy_edi`.`ori` AS `ori`,
`vn2008`.`buy_edi`.`cat` AS `cat`,
`vn2008`.`buy_edi`.`agj` AS `agj`,
`vn2008`.`buy_edi`.`kop` AS `kop`,
`vn2008`.`buy_edi`.`ptd` AS `ptd`,
`vn2008`.`buy_edi`.`sub` AS `sub`,
`vn2008`.`buy_edi`.`pro` AS `pro`,
`vn2008`.`buy_edi`.`pri` AS `pri`,
`vn2008`.`buy_edi`.`package` AS `package`,
`vn2008`.`buy_edi`.`auction` AS `auction`,
`vn2008`.`buy_edi`.`klo` AS `klo`,
`vn2008`.`buy_edi`.`k01` AS `k01`,
`vn2008`.`buy_edi`.`k02` AS `k02`,
`vn2008`.`buy_edi`.`k03` AS `k03`,
`vn2008`.`buy_edi`.`k04` AS `k04`,
`vn2008`.`buy_edi`.`s1` AS `s1`,
`vn2008`.`buy_edi`.`s2` AS `s2`,
`vn2008`.`buy_edi`.`s3` AS `s3`,
`vn2008`.`buy_edi`.`s4` AS `s4`,
`vn2008`.`buy_edi`.`s5` AS `s5`,
`vn2008`.`buy_edi`.`s6` AS `s6`,
`vn2008`.`buy_edi`.`ok` AS `ok`,
`vn2008`.`buy_edi`.`trolley_id` AS `trolley_id`,
`vn2008`.`buy_edi`.`scanned` AS `scanned`
FROM
`vn2008`.`buy_edi`;