SELECT
Most =
IIF(@A >= ISNULL(@B, @A) AND @A >= ISNULL(@C, @A) AND @A >= ISNULL(@D, @A) AND @A >= ISNULL(@E, @A), @A,
IIF(@B >= ISNULL(@C, @B) AND @B >= ISNULL(@D, @B) AND @B >= ISNULL(@E, @B), @B,
IIF(@C >= ISNULL(@D, @C) AND @C >= ISNULL(@E, @C), @C,
IIF(@D >= ISNULL(@E, @D), @D, @E))));