Solved

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

Posted on 2007-03-26
3
15,270 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
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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

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.
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…

803 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