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
WSUS installation on Sql server
App. Emails Delivered Into Spam Folder
odbc error connecting mysql
How do I update a powerpoint userform listbox from excel?
Bulk Edit global address book
One of my Excel file always gives me a "File already open" messge.
Concatenate ntext field with text field in SQL view
SBS08 - RWW - FQDN - Can't Get it to Work?
Conversion failed when converting date and/or time from character string.
Dropdown of Word 2003, Insert Autotext subfolders are all empty