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
Access Query Too Complex Error with Union Query
Excel copy from sheet1 to sheet2
Unique index that ignores null values
Popup Calendar problem in C#
SBS 2008 Can't connect to my RWW from outside my network
GridView-FormView Master-Detail Setup (Programmatic Solution)
reverse string using SQL function
Outlook error 0x80040109 -
count total lines or "returns" from a string of text
How to email an Access 2002 report in pdf format