SELECT DISTINCT ON (id) id, description FROM list_index li ORDER BY id, rpt_key DESC;