peter478 (12/5/2016)
Thank you , btw. sometimes has column2 value = NULL and result is also NULL. I this case I want to put date from column1.
CASE
WHEN column1 >= ISNULL(column2,Column1)
THEN column1
ELSE column2 END AS Result
This will handle that situation.
How to post a question to get the most help http://www.sqlservercentral.com/articles/Best+Practices/61537