In SQL how do I select only rows with max value on a column? The Problem If you have a SQL table with different versions of content in multiple rows, how do you get the latest version of the content?