ػѹѺ ­ҧ ʾ. ࢵ 3 (,йظ) [ ʾ.йظ 1]
ç¹ ͧ ͧ ͧ Թ ͧᴧ
SELECT im_school.school_id AS s_id,im_school.school_name AS s_name, COUNT(*) AS NUB , COUNT(IF(im_team.award='ͧ',award,NULL)) AS gold_medal, COUNT(IF(im_team.award='Թ',award,NULL)) AS silver_medal, COUNT(IF(im_team.award='ͧᴧ',award,NULL)) AS bronze_medal, COUNT(IF(im_team.award='',award,NULL)) AS join_medal, COUNT(IF(im_team.rank='',rank,NULL)) AS winner, COUNT(IF(im_team.rank='ͧѹѺ ',rank,NULL)) AS two_rank, COUNT(IF(im_team.rank='ͧѹѺ ',rank,NULL)) AS three_rank FROM im_school,im_team WHERE im_school.province_id=32 AND im_school.area_type_id=2 AND im_school.zone_num=1 AND im_team.confirm_status=1 AND im_school.school_id=im_team.school_id GROUP BY im_team.school_id ORDER BY winner DESC, two_rank DESC, three_rank DESC, gold_medal DESC, silver_medal DESC,bronze_medal DESC,join_medal DESC, NUB DESC, s_name ASC
1 ظԷ 69 18 16 103 98 13 6 4 117
2 ҧػ 25 39 10 74 69 13 6 2 88
3 "Եҹء" 14 16 14 44 44 25 15 6 84
4 Ҫ "عԷҹء" 11 6 11 28 32 18 13 9 63
5 ǧ"شѪԷ" 8 7 6 21 21 16 11 8 48
6 ҸԵѸ ԷҪѮйظ 8 5 7 20 16 13 5 1 34
7 ط 8 4 8 20 18 16 12 15 46
8 ˹ͧԷҤ 6 1 1 8 8 4 6 8 18
9 ҧѹ 5 8 10 23 26 18 7 10 51
10 ظҹó 5 5 6 16 21 14 9 12 44
11 ѧ "§Է" 4 10 6 20 21 17 12 11 50
12 ҡҹԷ 4 2 1 7 9 4 12 5 25
13 ҹáЪä 4 1 1 6 6 7 2 3 15
14 áؤػ 3 4 4 11 16 13 7 6 36
15 ظŹԸ 2 11 12 25 33 20 9 7 62
16 ʵԷ 2 4 1 7 9 8 10 9 27
17 2 2 3 7 9 12 5 9 26
18 ǧԷҹء 2 1 2 5 6 6 4 4 16
19 ҪҧԷҤ 1 2 4 7 8 13 12 6 33
20 ᫿ظ 1 2 2 5 6 10 7 7 23
21 Թ֡ (.1-6) 1 0 2 3 4 6 5 3 15
22 Է 2 1 0 1 2 2 6 4 2 12
23 ҹҪҵظ 1 0 0 1 2 1 6 2 9
24 Ҫ "ЪҹԵ" 0 0 1 1 4 5 2 6 11
187 148 129 464 488 278 187 155 953