Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Select most recent for each
Message
From
30/03/2004 08:45:07
 
 
To
All
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Title:
Select most recent for each
Miscellaneous
Thread ID:
00890728
Message ID:
00890728
Views:
56
OK, this should be easy, but it seems I am having one of those days. I have two tables, employee and event. I have a view where I need to see all of the employee's and only the most recent event, by eventDate:

Select employee, emplAtrib1, ..., event, eventAtrib1, eventDate
From employee INNER JOIN event on employee.emplID = event.emplID

But only the most recent event.

Can anyone help the brain dead this morning?? :)

Thanks in advance.
Thank You

Rollin Burr

Politicians and diapers have one thing in common. They should both be changed regularly, and for the same reason.
Next
Reply
Map
View

Click here to load this message in the networking platform