Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Select most recent for each
Message
De
30/03/2004 12:14:54
 
 
À
30/03/2004 08:45:07
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Divers
Thread ID:
00890728
Message ID:
00890866
Vues:
25
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)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform