Home Page for the TeradataForum

Archives of the TeradataForum

Message Posted: Wed, 28 Sep 2011 @ 09:49:15 GMT

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

Subj:   Re: How to Fetch tables from Database with different suffixes
From:   Anomy Anom

<-- Anonymously Posted: Wednesday, September 28, 2011 05:15 -->


I understand that you are looking for the list of table which has 1308/ 1408/ 1206 as its last FOUR chars, regardless of database name.....


1. You will have to query out DBC.Table dictionary table.

2. have to use STRING Function [may be 'INSTR'] along with CONCATE function to find out last four chars as above [with IN clause or a '=' for your filter string].

Else if you know the repository name which occupy these tables, you can probably use the below query

       WHERE DATABASENAME='Database_Name' AND TABLENAME LIKE '%1308%';

Hope this can help you.....

  <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