Home Page for the TeradataForum

Archives of the TeradataForum

Message Posted: Tue, 21 Apr 2015 @ 16:48:45 GMT

  <Prev Next>   <<First <Prev Next> Last>>  

Subj:   Re: UDF Error - Function does not exist
From:   Dieter Noeth

Roopalini Bakthavachalam wrote:

  I figured it out. I casted the date1, date2 and date3 to VARCHAR and it worked:-)  

Yep, this is stupid, both LEAST and GREATEST don't work on dates. Of course this is the first thing I was trying to do and I failed, too :-) But I prefer CASTing to INT instead of VarChar.

Btw, later TD releases return a more meaningful error message:

[9881] Function 'LEAST' called with an invalid number or type of parameters


  <Prev Next>   <<First <Prev Next> Last>>  
  Top Home Privacy Feedback  
Copyright for the TeradataForum (TDATA-L), Manta BlueSky    
Copyright 2016 - All Rights Reserved    
Last Modified: 15 Jun 2023