我有以下代碼:MySQL的排序列表質詢
SELECT q21coding, COUNT(q21coding) AS Count
FROM `tresults_acme`
WHERE q21 IS NOT NULL AND q21 <> ''
GROUP BY q21coding
ORDER BY Count DESC
它帶回了以下內容:
q21coding Count
Difficulty in navigating/finding content 53
Positive comments 28
Suggestions for improvement 14
Inappropriate content/use 13
Improve search facility 6
Include information about staff and teams 5
Content needs updating 4
Other 30
你會發現,對方是第二個下 - 有一種方式無論計數大小如何,確保Other始終位於底部?
感謝,
荷馬
完美 - 謝謝!!!!! – 2010-10-11 09:13:27
對不起,但進一步擴大 - 如果我需要底部兩個始終是正面評論,然後是其他 - 這是可能的嗎? – 2010-10-11 09:43:18