troubleshooting Question

Find the Latest occurrence of a Record

Avatar of Shaunsmith
ShaunsmithFlag for United States of America asked on
Oracle DatabaseSQL
6 Comments3 Solutions757 ViewsLast Modified:
I have an Employee Table wherein it records a lot of activities for each date .I have a status column (eg: W,A,S etc) that inidicates the activities .
I need to pick the latest occurance when the status column is W or A

empNo      Status      Date
1      W      2nd June 2011
1      A      3rd June 2011
2      S      1st June 2011
2      S      2nd June 2011

I would need

empNo      Status      Date

1      A      3rd June 2011
2      S      2nd June 2011
Join our community to see this answer!
Unlock 3 Answers and 6 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 3 Answers and 6 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros