CREATE ALGORITHM = UNDEFINED DEFINER = `aerion`@`localhost` SQL SECURITY DEFINER VIEW `aerion`.`vw_mon_attration` AS SELECT `aerion`.`rpt_year_month_attrition`.`month` AS `month`, SUM(`aerion`.`rpt_year_month_attrition`.`started`) AS `started`, SUM(`aerion`.`rpt_year_month_attrition`.`ended`) AS `ended` FROM `aerion`.`rpt_year_month_attrition` GROUP BY `aerion`.`rpt_year_month_attrition`.`month` ORDER BY `aerion`.`rpt_year_month_attrition`.`month`