Archives of the TeradataForum
Message Posted: Wed, 30 Mar 2005 @ 22:22:36 GMT
Thanks for the response.
I am using the position to identity that I have cessation or cess found in that character string.
Tobacco comments is defined as varchar string.
I originally had it in the SQL Assistant working as:
position ('cessation' in sh.tobacco_comments) as cess1 position ('cess' in sh.tobacco_comments as cess2
TD SQL Assistant tool's result shows a column name of cess1 and, if cessation were found, a numeric value would be please in that column. In BTEQ , on the mainframe, the resulting column value is a decimal value.
I am trying to format it to character so that I can with another program look a cess1, cess2 to determine if they are greater than zero, meaning, that the character string was found.
|Copyright 2016 - All Rights Reserved|
|Last Modified: 28 Jun 2020|