Advertisement
timbreynolds

Number of record holders per country

Jul 21st, 2021
271
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.52 KB | None | 0 0
  1. +----------------------------------+---------------+---------+
  2. | countryId | recordHolders | records |
  3. +----------------------------------+---------------+---------+
  4. | Democratic Republic of the Congo | 1 | 1 |
  5. | Monaco | 1 | 2 |
  6. | Trinidad and Tobago | 1 | 2 |
  7. | Senegal | 1 | 2 |
  8. | Uganda | 1 | 2 |
  9. | Malawi | 1 | 2 |
  10. | Angola | 1 | 2 |
  11. | Samoa | 1 | 2 |
  12. | Somalia | 1 | 4 |
  13. | Namibia | 1 | 4 |
  14. | Zambia | 1 | 4 |
  15. | Grenada | 1 | 4 |
  16. | Bhutan | 1 | 6 |
  17. | Guyana | 1 | 6 |
  18. | Tanzania | 1 | 6 |
  19. | Bahamas | 1 | 8 |
  20. | Suriname | 1 | 11 |
  21. | Togo | 1 | 11 |
  22. | Liechtenstein | 1 | 21 |
  23. | Brunei | 1 | 22 |
  24. | Haiti | 1 | 25 |
  25. | Saint Kitts and Nevis | 1 | 26 |
  26. | Jamaica | 2 | 6 |
  27. | Turkmenistan | 2 | 9 |
  28. | Cote d_Ivoire | 2 | 10 |
  29. | Ghana | 2 | 15 |
  30. | Zimbabwe | 2 | 18 |
  31. | Nicaragua | 2 | 27 |
  32. | Tajikistan | 2 | 28 |
  33. | Kenya | 3 | 6 |
  34. | Sudan | 3 | 8 |
  35. | Papua New Guinea | 3 | 11 |
  36. | United Arab Emirates | 3 | 12 |
  37. | Albania | 3 | 14 |
  38. | Iraq | 3 | 14 |
  39. | Oman | 3 | 14 |
  40. | Syria | 3 | 15 |
  41. | Andorra | 3 | 15 |
  42. | Mauritius | 3 | 20 |
  43. | Kosovo | 3 | 22 |
  44. | Morocco | 3 | 24 |
  45. | Greece | 4 | 7 |
  46. | Cuba | 4 | 12 |
  47. | Afghanistan | 4 | 15 |
  48. | Saudi Arabia | 4 | 15 |
  49. | Macau | 4 | 28 |
  50. | North Macedonia | 4 | 28 |
  51. | Pakistan | 4 | 32 |
  52. | Tunisia | 4 | 33 |
  53. | Malta | 5 | 12 |
  54. | Libya | 5 | 14 |
  55. | Cambodia | 5 | 14 |
  56. | Sri Lanka | 5 | 16 |
  57. | Georgia | 5 | 21 |
  58. | Bahrain | 5 | 22 |
  59. | Kuwait | 5 | 22 |
  60. | Lebanon | 5 | 22 |
  61. | Cyprus | 5 | 24 |
  62. | Algeria | 5 | 26 |
  63. | Moldova | 5 | 27 |
  64. | Nigeria | 5 | 27 |
  65. | Luxembourg | 5 | 35 |
  66. | Portugal | 5 | 36 |
  67. | Kyrgyzstan | 6 | 22 |
  68. | Montenegro | 6 | 23 |
  69. | Croatia | 6 | 26 |
  70. | Iceland | 6 | 31 |
  71. | Madagascar | 7 | 10 |
  72. | Palestine | 7 | 19 |
  73. | Azerbaijan | 7 | 26 |
  74. | Armenia | 7 | 32 |
  75. | Lithuania | 7 | 37 |
  76. | Denmark | 7 | 40 |
  77. | Bosnia and Herzegovina | 8 | 29 |
  78. | Slovenia | 8 | 37 |
  79. | Panama | 9 | 30 |
  80. | Mongolia | 9 | 30 |
  81. | Slovakia | 9 | 34 |
  82. | Bulgaria | 9 | 36 |
  83. | Singapore | 9 | 39 |
  84. | Jordan | 10 | 27 |
  85. | Bangladesh | 10 | 31 |
  86. | Ireland | 10 | 36 |
  87. | Austria | 10 | 38 |
  88. | Egypt | 11 | 24 |
  89. | Venezuela | 11 | 31 |
  90. | Turkey | 11 | 32 |
  91. | Uzbekistan | 11 | 32 |
  92. | Uruguay | 11 | 33 |
  93. | Israel | 11 | 35 |
  94. | Czech Republic | 11 | 37 |
  95. | Estonia | 11 | 37 |
  96. | South Africa | 11 | 37 |
  97. | Dominican Republic | 12 | 30 |
  98. | Honduras | 12 | 30 |
  99. | Thailand | 12 | 37 |
  100. | Norway | 12 | 38 |
  101. | Argentina | 12 | 39 |
  102. | New Zealand | 12 | 40 |
  103. | Finland | 12 | 40 |
  104. | Paraguay | 13 | 30 |
  105. | Switzerland | 13 | 36 |
  106. | Romania | 13 | 38 |
  107. | Latvia | 13 | 39 |
  108. | Costa Rica | 14 | 31 |
  109. | El Salvador | 14 | 32 |
  110. | Serbia | 14 | 33 |
  111. | Netherlands | 14 | 38 |
  112. | Sweden | 14 | 41 |
  113. | Nepal | 15 | 32 |
  114. | Bolivia | 15 | 33 |
  115. | Guatemala | 15 | 33 |
  116. | Hong Kong | 15 | 37 |
  117. | Indonesia | 15 | 38 |
  118. | Belarus | 15 | 38 |
  119. | Peru | 15 | 38 |
  120. | Italy | 15 | 40 |
  121. | Chile | 16 | 35 |
  122. | Colombia | 16 | 37 |
  123. | Kazakhstan | 16 | 37 |
  124. | Australia | 16 | 40 |
  125. | Malaysia | 16 | 41 |
  126. | Canada | 16 | 43 |
  127. | Iran | 17 | 35 |
  128. | Vietnam | 17 | 35 |
  129. | Korea | 17 | 39 |
  130. | Belgium | 17 | 40 |
  131. | Ecuador | 18 | 30 |
  132. | Taiwan | 18 | 40 |
  133. | Poland | 18 | 41 |
  134. | Ukraine | 19 | 38 |
  135. | Mexico | 19 | 39 |
  136. | Spain | 19 | 39 |
  137. | Hungary | 19 | 41 |
  138. | France | 19 | 41 |
  139. | Germany | 19 | 42 |
  140. | Russia | 20 | 41 |
  141. | Japan | 21 | 41 |
  142. | China | 23 | 40 |
  143. | USA | 23 | 41 |
  144. | India | 23 | 41 |
  145. | Brazil | 24 | 42 |
  146. | Philippines | 25 | 40 |
  147. | United Kingdom | 25 | 41 |
  148. +----------------------------------+---------------+---------+
  149.  
  150. mysql> select countryId, count(distinct personId) as recordHolders, count(1) as records from (select * from RanksAverage union all select * from RanksSingle) as Ranks join Persons on Ranks.personId=Persons.id where countryRank=1 and subid=1 group by 1 order by 2 asc, 3 asc;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement