![]() |
|
Archives of the TeradataForumMessage Posted: Wed, 26 Mar 2003 @ 09:09:02 GMT
In this case, you have to set up some rules, e.g. if the difference is greater than X then minutes, if not seconds, something like this:
select
case when minute(END_TIME - BEGIN_TIME) > X
then minute(END_TIME - BEGIN_TIME)
else second(END_TIME - BEGIN_TIME)
end
from tblXYZ
;
Regards Sergio Azzaretti
| ||||||||||||||||||||||||||||||||||||||||||||||||
| | ||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||
|
| ||||||||||||||||||||||||||||||||||||||||||||||||
| Copyright 2016 - All Rights Reserved | ||||||||||||||||||||||||||||||||||||||||||||||||
| Last Modified: 15 Jun 2023 | ||||||||||||||||||||||||||||||||||||||||||||||||