Solved

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

Posted on 2007-03-26
3
15,166 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
3 Comments
 
LVL 13

Expert Comment

by:adraughn
Comment Utility
try:

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

Accepted Solution

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

NB xxxxx is the name of your "schema"
0
 

Author Comment

by:esna01
Comment Utility
Thank you rogercruse
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

APEX (Application Express) is used to develop a web application from Oracle. SQL Workshop is one of the tools that comes with Oracle APEX to query or modify the database objects or to make any changes to the structure.
This article describes how to use the timestamp of existing data in a database to allow Tableau to calculate the prior work day instead of relying on case statements or if statements to calculate the days of the week.
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…

728 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now