Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Tue, 31 Aug 2004 @ 20:29:04 GMT


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


Subj:   Re: How to get table names from table ids
 
From:   Christie, Jon

Since there can be tables with the same name as long as they're in different databases, you probably want to get the database name as well. Like so:

     sel trim(d.databasename)||'.'||trim(t.tvmname)(title'DBname.TableName')
     from DBC.TVM   t
         ,DBC.Dbase d
     where d.databaseid = t.databaseid
      and  t.tvmid = '01000C870000'xb;


     
  <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