If I have a table that (among other columns) has two DATETIME columns, how would I select the most recent date from those two columns.
Example:
From SQL Server 2012 it's possible to use the shortcut IIF to CASE expression though the latter is SQL Standard:
CASE
SELECT ID, IIF(DateColA > DateColB, DateColA, DateColB) AS MostRecentDate FROM theTable