CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `hedera`.`myOrderTicket` AS SELECT `o`.`id` AS `orderFk`, `ot`.`ticketFk` AS `ticketFk` FROM ( `hedera`.`myOrder` `o` JOIN `hedera`.`orderTicket` `ot` ON(`ot`.`orderFk` = `o`.`id`) )