"id" "type" "parent" "country" "votes" "perCent"
"4177" "3" "4176" "US" "105" "0"// total of all the below
"4178" "10" "4177" "US" "15" "0"
"4179" "10" "4177" "US" "50" "0"
"4180" "10" "4177" "US" "25" "0"
"4181" "10" "4177" "US" "5" "0"
"4182" "10" "4177" "US" "10" "0"
MySQL では、投票の 10% を持つ行を選択することは可能ですか。ここに、id = 4177
そのカテゴリの総投票数があります。それをもとに、どこで誰が得票したものを選ぶことができるのtype = 10 and parent = 4177
でしょ10% or more
うか。