日期:2014-05-16 浏览次数:20995 次
SELECT b.province,b.city,a.*
FROM
(
SELECT TOP 10 area,COUNT(*) AS line
FROM mobileinterface ORDER BY 2 desc
) a
JOIN mobilephone b ON a.area=b.area
ORDER BY a.line desc
select
top 10 a.*,b.province,b.city
from
(select area,count(1) as line from mobileinterface group by area) as a
inner join
mobilephone as b ON a.area=b.area
order by
a.line desc
SELECT b.province,b.city,a.*
FROM
(
SELECT TOP 10 area,COUNT(*)
AS line FROM mobileinterface
group by area
ORDER BY line desc
) a
JOIN mobilephone b ON a.area=b.area
ORDER BY a.line desc