CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn`.`agencyWarehouse` AS SELECT `a`.`agency_id` AS `agencyFk`, `a`.`warehouse_id` AS `warehouseFk`, `a`.`Vista` AS `agencyType` FROM `vn2008`.`agency_warehouse` `a`