I want to find the minimum value present in 2 columns and max value present in 2 column
EX: A :2 3 4
 B: 5 6 7

Ans should be 2 for min and 7 for max.
A and B are columns in same table.
 min() inbuilt function doesn't exists.