sql数据分组,过滤分组,group,having,排序

Select Name,COUNT(*) as theName
FROM TABLE
GROUP BY Name
HAVING COUNT(*) >=2
ORDER BY theName;
posted @ 2007-08-16 22:48  子午  阅读(716)  评论(0编辑  收藏  举报