CREATE OR REPLACE DEFINER=`vn`@`localhost`
SQL SECURITY DEFINER
VIEW `vn`.`agencyModeIncoming` AS
	SELECT
		am.id,
		am.name
	FROM `vn`.`agencyMode` AS am
		JOIN `vn`.`agencyIncoming` AS ai
			ON am.id = ai.agencyModeFk;
