Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Select most recent for each
Message
From
30/03/2004 12:14:54
 
 
To
30/03/2004 08:45:07
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Miscellaneous
Thread ID:
00890728
Message ID:
00890866
Views:
26
This message has been marked as the solution to the initial question of the thread.

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?? :)
Select employee, emplAtrib1, ..., event, eventAtrib1, eventDate
From employee JOIN event on employee.emplID = event.emplID
AND event.eventDate=(SELECT MAX(eventDate) FROM event WHERE event.emplID=employee.emplID)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform