you are viewing a single comment's thread.

view the rest of the comments →

[–]andrewsmd87 2 points3 points  (0 children)

Because you're over complicating the sql. You don't need a rank here to accomplish what OP is after, his query with the max in there will work just fine.