|  |  | 
|  |  | Archives of the TeradataForumMessage Posted: Thu, 29 Mar 2007 @ 11:13:34 GMT
 
 Hi, I am not sure of any functions as such, but if the number of columns are less, using case statements can solve the problem. 
     select case
              when col1 < col2
              then (case when col1 < col3 then col1 else col3 end)
              else (case when col2 < col3 then col2 else col3 end)
            end
     from table_nm;
Regards 
 | ||||||||||||||||||||||||||||||||||||||||||||||
|  | ||||||||||||||||||||||||||||||||||||||||||||||||
| 
 | ||||||||||||||||||||||||||||||||||||||||||||||||
|   | ||||||||||||||||||||||||||||||||||||||||||||||||
| Copyright 2016 - All Rights Reserved | ||||||||||||||||||||||||||||||||||||||||||||||||
| Last Modified: 15 Jun 2023 | ||||||||||||||||||||||||||||||||||||||||||||||||