Microsoft
Software
Hardware
Network
Question : Find Duplicate Query
Hi all,
I have a 'Find Duplicate' query that returns a list of people. The query returns the PersonID, Name and Order Date. The duplicate is based on the PersonID.
What I am wanting is the query to just return a single record for the Person - and I want that record to be the latest Order Date.
Is this possible?
Thanks,
Tom
Answer : Find Duplicate Query
try this query
select * from tableX
where [Order Date] in
(select max([Order Date]) from tableX group by PersonID)
Random Solutions
Moving a selected item from listbox1 to listbox2
Excel VBA Array Based on Cell Value
How to run DBCC CHECKDB
Word/Excel Mail Merge with variable worksheet name
Sorting Column names while viewing data in TOAD
Script to read and ping default gateway needs an enhancement
Error 405 method not allowed when using WebClient()
vb.net 2.0 winforms - how to detect unsaved data in databound fields?
MS Office 07 (Student) installations
How do I get the Report Footer to show on the first page--there is enough room?