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:
CASE is IMHO your best option:
SELECT ID, CASE WHEN Date1 > Date2 THEN Date1 ELSE Date2 END AS MostRecentDate FROM Table
If one of the columns is nullable just need to enclose in COALESCE:
.. COALESCE(Date1, '1/1/1973') > COALESCE(Date2, '1/1/1973')