I want to find the maximum value of multiple columns.
MySQL supports the GREATEST function but SQL Server doesn\'t.
Is there any function similar to this in
I would recommend the following solution:
SELECT (CASE WHEN t.createdt < t.changedt THEN t.changedt ELSE t.created END) AS ChgDate FROM table t