Need the more recent between two DATETIME's in SQL -


i have 2 sql datetime's need compare. need set value of column more recent date between two. there function this?

use case statement.

update yourtable     set yourcolumn = case when @date1 > @date2 @date1 else @date2 end     where... 

Comments

Popular posts from this blog

c++ - Compiling static TagLib 1.6.3 libraries for Windows -

php - How can I merge Nodes & Webform Submissions into instances of one general Content Type in Drupal 6? -

xslt - Umbraco and EXSLT sets do not work -