Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Selecting most recent record
Message
 
 
À
Tous
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Titre:
Selecting most recent record
Divers
Thread ID:
00626540
Message ID:
00626540
Vues:
50
This seems easy enough but for some reason I can't get it to work right. All I want to do is return one most recent (based on a datetime field) record per each matching join. The twist here is it's not a typical one-many relationship but in a many-many relationship.

An example using MSSQL Northwind DB would be to run a query to return "one" most recent Order for all Customers with CompanyName LIKE "A%".
It's "my" world. You're just living in it.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform