![]() |
|
Archives of the TeradataForumMessage Posted: Tue, 31 Aug 2004 @ 20:29:04 GMT
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;
| ||||||||||||||||||||||||||||||||||||||||||||||||
| | ||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||
|
| ||||||||||||||||||||||||||||||||||||||||||||||||
| Copyright 2016 - All Rights Reserved | ||||||||||||||||||||||||||||||||||||||||||||||||
| Last Modified: 15 Jun 2023 | ||||||||||||||||||||||||||||||||||||||||||||||||