﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Teradata Forums / Analytical Applications / Teradata   / string surch problum / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>Teradata Forums</description><link>http://www.teradata.com/teradataforum/</link><webMaster>info@teradata.com</webMaster><lastBuildDate>Thu, 20 Nov 2008 10:55:56 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: string surch problum</title><link>http://www.teradata.com/teradataforum/Topic9659-5-1.aspx</link><description>thank u ppl a lot</description><pubDate>Fri, 09 Nov 2007 13:01:56 GMT</pubDate><dc:creator>Rahul</dc:creator></item><item><title>RE: string surch problum</title><link>http://www.teradata.com/teradataforum/Topic9659-5-1.aspx</link><description>Rahul,Maybe the following helps you to accomplish what you are looking for:create table test (id char(20));insert test values ('ADJEIW');insert test values ('adfrrt');insert test values ('12i#()');insert test values ('e fttg');insert test values ('213233');SELECTCASE WHEN SUBSTRING(id FROM 1 FOR 1) IN ('0','1','2','3','4','5','6','7','8','9')      AND SUBSTRING(id FROM 2 FOR 1) IN ('0','1','2','3','4','5','6','7','8','9')      AND SUBSTRING(id FROM 3 FOR 1) IN ('0','1','2','3','4','5','6','7','8','9')      AND SUBSTRING(id FROM 4 FOR 1) IN ('0','1','2','3','4','5','6','7','8','9')      AND SUBSTRING(id FROM 5 FOR 1) IN ('0','1','2','3','4','5','6','7','8','9')      AND SUBSTRING(id FROM 6 FOR 1) IN ('0','1','2','3','4','5','6','7','8','9')THEN id END         as column1FROM testWHERE column1 IS NOT NULL;Good luck.</description><pubDate>Fri, 09 Nov 2007 11:35:02 GMT</pubDate><dc:creator>Fabio</dc:creator></item><item><title>RE: string surch problum</title><link>http://www.teradata.com/teradataforum/Topic9659-5-1.aspx</link><description>Hi Rahul,you could use where col not like any ('%A%','%B%','%C%',...), but this is quite ugly, too.If there's the Oracle Translate function installed on your system, it's easy:compare the string with the length of the string when A to Z characters are removed:where str = otranslate(str, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', '')Dieter</description><pubDate>Thu, 08 Nov 2007 07:17:15 GMT</pubDate><dc:creator>dnoeth</dc:creator></item><item><title>string surch problum</title><link>http://www.teradata.com/teradataforum/Topic9659-5-1.aspx</link><description>hi i have a requirement like as column1---------ADJEIWadfrrt12i#()e fttg213233and i want to select all the rows which are not having A to Z any where in the attribute, spaces special char numbers can comei am using substr and retriving each char and checking with a NOT IN ('A','B','C',.....,'Z') condation is there any short cut to do </description><pubDate>Thu, 08 Nov 2007 03:18:59 GMT</pubDate><dc:creator>Rahul</dc:creator></item></channel></rss>