Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
INNER JOIN with most recent
Message
 
 
To
20/10/2010 11:25:56
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Environment versions
SQL Server:
SQL Server 2008
Application:
Web
Miscellaneous
Thread ID:
01486322
Message ID:
01486329
Views:
37
>I have a special request to get a list of records, where there is a bunch of INNER JOIN, but in one specific INNER JOIN, I need to get the most recent record. As far as I know, there is no way to obtain that directly from a INNER JOIN syntax. My assumption is that I would have to go sub query for this one. Any comment?

Check these blogs on this topic
Including an Aggregated Column's Related Values
Including an Aggregated Column's Related Values - Part 2

that explain many possible solutions in details and with performance tests (second blog).
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform