select title, abid, A.email
from yourtable AS A
right join
(select email
from yourtable
group by email
order by email desc) AS B
on A.email = b.email
这个应该差不多,只是我不太会右外连接
SELECT A.title, A.abid, A.email, b.emailcount
FROM table1 AS A right JOIN (SELECT email, count(email) as emailcount FROM table1 GROUP BY email) AS B ON A.email=b.email
order by emailcount desc
SELECT A.title, A.abid, A.email, b.emailcount
FROM table1 AS A right JOIN (SELECT email, count(email) as emailcount FROM table1 GROUP BY email) AS B ON A.email=b.email
order by emailcount desc
select *
from a=yourtable,b=(select email,emailcount=count(email) from yourtable group by email)
where a.email=b.email
group by b.emailcount desc,a.email;