CREATE ALGORITHM = UNDEFINED DEFINER = `aerion`@`localhost` SQL SECURITY DEFINER VIEW `aerion`.`vw_temp_2` AS SELECT DISTINCT `vw_temp_1`.`Table_name` AS `Table_name`, `vw_temp_1`.`refid` AS `refid`, `vw_temp_1`.`reftable` AS `reftable`, `vw_temp_1`.`tbl_to_update` AS `tbl_to_update`, `vw_temp_1`.`tbl_to_insert` AS `tbl_to_insert` FROM `aerion`.`vw_temp_1`