You are on page 1of 1

CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW

`atmc_bcode_inv_v` AS select `inv_t`.`id` AS `id`,`inv_t`.`intime` AS `intime`,`


inv_t`.`utime` AS `utime`,`inv_t`.`tid` AS `tid`,`inv_t`.`u` AS `u`,`inv_t`.`cc`
AS `cc`,`inv_t`.`bc` AS `bc`,`inv_t`.`ref` AS `ref`,`inv_t`.`bref` AS `bref`,`i
nv_t`.`bcode` AS `bcode`,`inv_t`.`bcode_p01` AS `bcode_p01`,`inv_t`.`bcode_p02`
AS `bcode_p02`,`inv_t`.`bl01` AS `bl01`,`inv_t`.`bl02` AS `bl02`,`inv_t`.`bl03`
AS `bl03`,`inv_t`.`st` AS `st`,`inv_t`.`type` AS `type`,`inv_t`.`vf` AS `vf`,`in
v_t`.`vt` AS `vt`,`inv_t`.`hc` AS `hc`,`inv_t`.`pc` AS `pc`,`inv_t`.`ic` AS `ic`
,`inv_t`.`tb` AS `tb`,`inv_t`.`mn` AS `mn`,`inv_t`.`pos_ref` AS `pos_ref`,`inv_t
`.`ip` AS `ip`,`inv_t`.`test` AS `test`,`inv_t`.`pos_user` AS `pos_user`,`inv_t`
.`redeem_dt` AS `redeem_dt`,`inv_t`.`active` AS `active`,`inv_t`.`checking` AS `
checking`,`inv_t`.`last_checked` AS `last_checked`,`inv_t`.`transid` AS `transid
`,`inv_t`.`pos_mn` AS `pos_mn`,`inv_t`.`branch_id` AS `branch_id`,`inv_t`.`comme
nts` AS `comments`,`inv_t`.`rrn` AS `rrn`,`inv_t`.`channel` AS `channel`,`inv_t`
.`vendor` AS `vendor`,`inv_t`.`rdm_uname` AS `rdm_uname`,`inv_t`.`issue_dt` AS `
issue_dt`,`inv_t`.`cn` AS `cn`,`inv_t`.`merchant` AS `merchant`,`inv_t`.`note` A
S `note`,`inv_t`.`reward` AS `reward`,`inv_t`.`tier` AS `tier`,`pos_ict`.`produc
t_name` AS `product_name`,`sid`.`sn` AS `sn`,`inv_t`.`promo_name` AS `promo_name
`,`inv_t`.`booking_no` AS `booking_no` from (((`atmc_bcode_inv_t` `inv_t` left j
oin `pos_itemcode_t` `pos_ict` on(((`inv_t`.`ic` = `pos_ict`.`ic`) and (`inv_t`.
`pc` = `pos_ict`.`pc`)))) left join `sms_sid_t` `sid` on((`sid`.`sid` = `inv_t`.
`branch_id`))) left join `promo_t` `pt` on((`pt`.`promo_code` = `inv_t`.`pc`)));

You might also like