troubleshooting Question

Get the newest records of each type

Avatar of MacNuttin
MacNuttinFlag for United States of America asked on
Microsoft SQL Server
6 Comments1 Solution225 ViewsLast Modified:
I have one table with dated records of 4 different types by employee. I need to query the newest record of each type by employee

Example:
emp    type  result  date
1           1       -1        03/03/07
1           1       0          03/03/06
1           2        0         03/03/05
1           3        1         03/01/07
1           4        0         03/03/07

I need:
emp    type  result  date
1           1       -1        03/03/07
1           2        0         03/03/05
1           3        1         03/01/07
1           4        0         03/03/07
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 6 Comments.
Join the Community
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 1 Answer 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