Hi guys,
Probably most or some of you know the solution to this. As the title suggests, I have a set of Timestamps. I want to get the highest timestamp.
Of course I can just use the case statement like:
Code:
CASE
WHEN
TIMESTAMP('2004-01-26 11:50:00.000000') > TIMESTAMP('2003-04-23 08:00:00.000000')
THEN
TIMESTAMP('2004-01-26 11:50:00.000000')
WHEN...........
THEN.....
ELSE TIMESTAMP('2003-04-23 08:00:00.000000')
end
is there an easy way to do this? Or a way that I can make it using the MAX function:
Code:
MAX(TIMESTAMP('2004-01-26 11:50:00.000000'),TIMESTAMP('2003-04-23 08:00:00.000000'),.......,......)
Thanks!