DELETE SAMPLE.ID, SAMPLE.红蓝双方名称, SAMPLE.红蓝双方数量, (select count(sample.红蓝双方名称) as autonum from sample where (sample.id<=sample_1.id and sample.红蓝双方名称= sample_1.红蓝双方名称)) AS tmpNo
FROM SAMPLE INNER JOIN SAMPLE AS SAMPLE_1 ON SAMPLE.ID = SAMPLE_1.ID
WHERE ((((select count(sample.红蓝双方名称) as autonum from sample where (sample.id<=sample_1.id and sample.红蓝双方名称= sample_1.红蓝双方名称)))>1));
想了好久才想出来
DELETE SAMPLE.红蓝双方名称, SAMPLE.红蓝双方数量, SAMPLE.ID
FROM SAMPLE
WHERE (((SAMPLE.红蓝双方名称) In (SELECT [红蓝双方名称] FROM [SAMPLE] As Tmp GROUP BY [红蓝双方名称],[红蓝双方数量] HAVING Count(*)>1 And [红蓝双方数量] = [SAMPLE].[红蓝双方数量])));