Taking the max/min of two columns in PostgreSQL
Posted