Possible Duplicate:
SQL Server equivalent to Oracle LEAST?
Function in SQL Server 2008 similar to GREATEST in mysql?
i am trying to find a SQL Server equivalent of oracle's "GREATEST" function.
something that would return the largest (in this case timestamp) from a list of values given
example: greatest(timestamp1, temestamp2, timestamp3)
would return the most current date.
is there something like this in SQL Server i can use?
Thanks!