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:
select ID, case when Date1 > Date2 then Date1 else Date2 end as MostRecentDate from MyTable