获取重复的数据的值:
SELECT AccountCode
FROM [EZTecProjectManage].[dbo].FeeSetting
group by AccountCode,MoneyType
having(count(1)>1)
获取重复数据的记录
select AccountCode from [EZTecProjectManage].[dbo].FeeSetting where AccountCode in
(
select AccountCode from [EZTecProjectManage].[dbo].FeeSetting
group by AccountCode,MoneyType
having(count(1)>1)
)