Solved

sql to list all teradata tables and/or views to a new table

Posted on 2007-03-26
3
15,458 Views
Last Modified: 2013-11-16
How to list teradata views and/or tables on a new temporary table (can be a volatile table) in one column
I need the sql to do so.
So, i need a new temporary table with one column lists all the tables/views within a specific schema.
Not part of the question: after the temp table is built, i will then pull it to the unix server for my sas analysis.
0
Comment
Question by:esna01
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 13

Expert Comment

by:adraughn
ID: 18796414
try:

use database name
select * from sysobjects
where xtype = 'U' OR xtype = 'V'
0
 

Accepted Solution

by:
rogercruse earned 50 total points
ID: 19028952
Select tablename from dbc.tables where databasename = 'xxxxx'

NB xxxxx is the name of your "schema"
0
 

Author Comment

by:esna01
ID: 19030383
Thank you rogercruse
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many companies are looking to get out of the datacenter business and to services like Microsoft Azure to provide Infrastructure as a Service (IaaS) solutions for legacy client server workloads, rather than continuing to make capital investments in h…
As technology users and professionals, we’re always learning. Our universal interest in advancing our knowledge of the trade is unmatched by most industries. It’s a curiosity that makes sense, given the climate of change. Within that, there lies a…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

729 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question