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

Click here to load this message in the networking platform