Return rows that are max of one column in Postgresql
问题 Sample data from my table test_table : date symbol value created_time 2010-01-09 symbol1 101 3847474847 2010-01-10 symbol1 102 3847474847 2010-01-10 symbol1 102.5 3847475500 2010-01-10 symbol2 204 3847474847 2010-01-11 symbol1 109 3847474847 2010-01-12 symbol1 105 3847474847 2010-01-12 symbol2 206 3847474847 Given the table above, I am trying to find the optimal index to put on the table (date, symbol, value and created_time should combined be unique) and the query to go along with it to