[tsql] Getting the minimum of two values in SQL