![]() |
|
Archives of the TeradataForumMessage Posted: Thu, 31 Aug 2000 @ 10:16:40 GMT
Dave Thanks for the reply.
select region, store_no, trim( leading from (store_no (format
'zzzzzzzzz9'))) as st2, char(st2)
from stores
where index('10 12'||' ', trim( leading from (store_no (format
'zzzzzzzzz9'))||' ' ) ) >0 ;
returns stores 2, 10, & 12 Changing the format to '99' to force two digits for each number returns only stores 10 & 12. Barbara
| ||||||||||||||||||||||||||||||||||||||||||||||||
| | ||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||
|
| ||||||||||||||||||||||||||||||||||||||||||||||||
| Copyright 2016 - All Rights Reserved | ||||||||||||||||||||||||||||||||||||||||||||||||
| Last Modified: 15 Jun 2023 | ||||||||||||||||||||||||||||||||||||||||||||||||