Home Forums SQL Server 2012 SQL Server 2012 - T-SQL Finding the most recent value for many record in a detail table (optimizing) RE: Finding the most recent value for many record in a detail table (optimizing)

  • Bhaskar.Shetty (5/24/2013)


    How about this solutions...

    >>SQL Removed<<

    Hmm, thank you. I hadn't quite thought of that as a third option to the Sub query and cross apply. In fact if I'd made a ITF, I think my mind would have drifted towards a cross apply

    I like how it's clean and I'm interested to see how it the RowNumber compares to the Top 1 performance wise. I'll post a followup comparison 🙂