para las Maximas= " SELECT max(greatest (col1, col2) FROM TABLE " para las Minimas = "SELECT min(least (col1, col2) FROM TABLE "