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
Sharepoint_Config Log file
ADSI Edit not letting me make changes
Urgent System.UnauthorizedAccessE<wbr />xception
How do trigger an automatic e-mail alert that is based on a date field in an SQL database?
vb.net service needs to restart itself
Printing odd sized reports
see traffic logs on windows server 2003
Opening Another Form Filtered with a Button
[c#]Invalid parameter used when trying to save a graphic.
Any free DBF viewer software?