select t1.stage,t1.citycountrygroup,t1.jisuno,t2.xueshengsushe from mv_db_base_student t1 inner join mv_db_base_banxuetiaojian t2 on t1.stage=t2.stage and t1.citycountrygroup=t2.citycountrygroup ORDER BY CASE WHEN t1.stage = '小学' THEN 1 WHEN t1.stage = '初中' THEN 2 WHEN t1.stage = '高中' THEN 3 END,CASE WHEN t1.citycountrygroup = '城区' THEN 1 WHEN t1.citycountrygroup = '镇区' THEN 2 WHEN t1.citycountrygroup = '乡村' THEN 3 END