ػѹѺ ­ҧ ʾ. ࢵ 11 (ɮҹ,) [ ʾ.ɮҹ 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=67 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 ɮԷ 41 45 14 100 96 19 6 5 121
2 ɮҹ 32 12 10 54 49 21 8 6 78
3 ջɮԷ 24 19 15 58 58 27 12 11 97
4 ɮҹ 2 16 8 6 30 30 14 13 16 57
5 ͧɮҹ 15 16 15 46 39 28 13 13 80
6 10 6 12 28 32 20 11 13 63
7 ෾Ե֡ 8 9 9 26 27 19 21 19 67
8 ѸѪáԵ 3 ɮҹ 8 5 5 18 17 20 13 13 50
9 ɮԷ 2 7 7 6 20 24 15 14 16 53
10 ҭɰ 4 8 4 16 16 14 7 8 37
11 ᷾Է 4 3 0 7 9 14 9 4 32
12 оЧѹ֡ 4 2 7 13 8 10 4 7 22
13 ..Էҹó 2 4 6 12 12 16 6 6 34
14 ͹ѡاԷ 2 3 5 10 10 11 4 13 25
15 ֡ʧɮҹ 2 1 3 6 8 11 5 12 24
16 ش֡ҾѲҡ ɮҹ 1 3 6 10 13 10 7 15 30
17 ԹԷ 1 0 1 2 2 1 5 3 8
18 Ⱥ 1 1 0 0 1 1 0 0 1 1
19 Դ 0 5 5 10 11 6 6 10 23
20 ҸԵ 0 1 2 3 2 5 5 12 12
21 ૹ૿ 0 0 5 5 4 7 10 7 21
22 ͧԷ 0 0 3 3 2 6 8 9 16
23 Է෤ɮҹ 0 0 1 1 2 2 7 6 11
24 0 0 1 1 0 2 7 11 9
25 ҡáԷҤ 0 0 0 0 3 6 8 10 17
26 ȺŹɮҹ 0 0 0 0 1 1 5 6 7
27 ɮ 0 0 0 0 0 3 2 12 5
28 Ⱥ 4 0 0 0 0 0 2 2 1 4
29 ѭҴ 0 0 0 0 0 0 0 5 0
182 157 141 480 476 310 218 270 1,004