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,(select max(d) from (select Date1 d uninon select Date2 d) as t) as MaxDate from MyTable