sudhirhinduja
Registered User.
- Local time
- Today, 18:16
- Joined
- Aug 17, 2004
- Messages
- 41
Hello,
I have generated the duplicate Executives from a query using the following code:
SELECT [Companies and Executives with Proxy Date Query].[Name], [Companies and Executives with Proxy Date Query].[ExecID], [Companies and Executives with Proxy Date Query].[Title], [Companies and Executives with Proxy Date Query].[Company], [Companies and Executives with Proxy Date Query].[ProxDate]
FROM [Companies and Executives with Proxy Date Query]
WHERE ((([Companies and Executives with Proxy Date Query].Name) In (SELECT [Name] FROM [Companies and Executives with Proxy Date Query] As Tmp GROUP BY [Name] HAVING Count(*)>1 )))
ORDER BY [Companies and Executives with Proxy Date Query].[Name];
I want to delete the duplicate entries, but the older ones while retaining the latest ones based on ProxDate.
Please advise.
Thanks,
Sudhir.
I have generated the duplicate Executives from a query using the following code:
SELECT [Companies and Executives with Proxy Date Query].[Name], [Companies and Executives with Proxy Date Query].[ExecID], [Companies and Executives with Proxy Date Query].[Title], [Companies and Executives with Proxy Date Query].[Company], [Companies and Executives with Proxy Date Query].[ProxDate]
FROM [Companies and Executives with Proxy Date Query]
WHERE ((([Companies and Executives with Proxy Date Query].Name) In (SELECT [Name] FROM [Companies and Executives with Proxy Date Query] As Tmp GROUP BY [Name] HAVING Count(*)>1 )))
ORDER BY [Companies and Executives with Proxy Date Query].[Name];
I want to delete the duplicate entries, but the older ones while retaining the latest ones based on ProxDate.
Please advise.
Thanks,
Sudhir.