1
SELECT * , COUNT( `ftm_content_type`) AS count,
max(tot.totcount) as totcount
FROM ftm_points join
(select count(*) as totcount from ftm_points) tot
GROUP BY ftm_content_type
我解決我的問題,在您的幫助只得到計數的總
FTM_CONTENT_TYPE = 4 3 2 1
COUNT = 3 2 3 2 = TOTAL OF COUNT = 10(I need this result)
哪個DBMS是這個呢? –