Is there a Max function in SQL Server that takes two values like Math.Max in .NET?
You’d need to make a User-Defined Function if you wanted to have syntax similar to your example, but could you do what you want to do, inline, fairly easily with a CASE statement, as the others have said. The UDF could be something like this: … and you would call it like so …