CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`v_warehouse` AS SELECT `warehouse`.`id` AS `id`, `warehouse`.`name` AS `almacen` FROM `vn2008`.`warehouse` UNION ALL SELECT 1000 + `warehouse_alias`.`warehouse_alias_id` AS `warehouse_alias_id`, concat(`warehouse_alias`.`alias`, '(G)') AS `concat(alias, '(G)')` FROM `vn2008`.`warehouse_alias`