Link to home
Start Free TrialLog in
Avatar of dlnewman70
dlnewman70

asked on

Oracle DB Syntax for Unique Records

I have a table that has two fields: username and entrydate. I am trying to figure out the query to pull the latest combination of the two or most recent combination based upon the entrydate.

So for example:

user1, 01_May_2013
user1, 29_May_2013
user2, 01_April_2013

The SQL I am looking to run should pull:

user1, 29_May_2013
user2, 01_April_2013

Since I only want the most recent record in my pull I would only get the unique values and the most recent entry for user1.
ASKER CERTIFIED SOLUTION
Avatar of slightwv (䄆 Netminder)
slightwv (䄆 Netminder)

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial