MSSQL – Max function in SQL server that takes two values like Math Max in NET Vis Dotnet 2 years ago SQL Server – Max function like in .NET More info https://howtodomssqlcsharpexcelaccess.blogspot.com/2018/11/mssql-max-function-in-sql-server-that.html