Postgresql Distinct On Order By Multiple Case