Archives of the TeradataForum
Message Posted: Fri, 24 May 2002 @ 15:38:41 GMT
Actually, it is stored as varchar (so no trailing blanks) but you put me in the right direction, this modification to your suggestion works...
substr('00000000000000000000', 1, 20-characters(first_acct_nbr)) || (first_acct_nbr)
|Copyright 2016 - All Rights Reserved|
|Last Modified: 28 Jun 2020|