In SQL Server 2008, I need to query across columns in T-SQL and return the largest number I find (example below using dates, but same idea applies to numbers). "NULL" indicates a null value, not the literal word (sorry if I'm being captain obvious). The column "DesiredResultColumn" shows the final result I want from searching across Column1 through Column3. I'm not finding an example on here which fits this exactly.
ID Column1 Column2 Column3 DesiredResultColumn
001 1/1/2010 5/7/2011 8/12/2008 5/7/2011
002 7/1/2014 7/3/2012 10/12/2013 7/1/2014
003 9/1/2012 12/7/2012 NULL 12/7/2012
004 11/1/2012 NULL 8/12/2013 8/12/2013
Unfortunately my tables, due to the source system constraints, aren't normalized, otherwise a max function would solve my problem. Thoughts? I appreciate it!