Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Selecting most recent record
Message
From
28/02/2002 12:40:29
 
 
To
All
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Title:
Selecting most recent record
Miscellaneous
Thread ID:
00626540
Message ID:
00626540
Views:
57
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.
Next
Reply
Map
View

Click here to load this message in the networking platform