以下是引用yangzn在2003-12-1 19:03:47的发言:
比如这个就是论坛里经常问的查找重复记录的例子
SELECT *
FROM tblImport
WHERE OrderId In (SELECT OrderId FROM tblImport
GROUP BY OrderId HAVING Count(*)>1) ORDER BY OrderId;
我看了这个很受启发
欢迎光临 Office中国论坛/Access中国论坛 (http://www.office-cn.net/) | Powered by Discuz! X3.3 |