ReadVitamin

Blogging on Teradata SQL and More

8 Comments

mygif
Ying Said in Thursday, December 20th, 2007 @11:36 pm  

How do I see the select statement of a view in Teradata?

mygif
Ying Said in Thursday, December 20th, 2007 @11:37 pm  

How do I see the select statement for the view?

mygif
admin Said in Friday, December 21st, 2007 @12:08 am  

SHOW SELECT * FROM

This would give results as follows

Replace View . AS Select * from .

mygif
sri Said in Thursday, June 12th, 2008 @3:16 am  

Hi,
While creating a view , i had specified certain comments and created the view .However when i gave a show view , the comments did not appear.Can you please tell me why is this so ?

mygif
Diego Said in Thursday, June 12th, 2008 @1:45 pm  

You can check the Select with this:
Show view XXX;

XXXX = View you can check….

mygif
Diego Said in Thursday, June 12th, 2008 @1:47 pm  

You must put this:

show view XXXX.

XXXX = Your view.

mygif
sri Said in Friday, June 13th, 2008 @2:49 am  

Hi,
Thank you for the reply however my prob is still not solved :( For eg :
If i create a view as :
replace view TEST as

/*Query to fetch emp with sal>1000*/
sel* from table1

UNION

/*Query to fetch emp with desig=A*/
sel* from table2
;

Here the comments specified in /**/ do not appear when i give a show view after creating the view.Please let me know why this is happening.

mygif
rafi Said in Tuesday, September 1st, 2009 @3:47 pm  

Hi Sri,

You might have created the view in BTEQ, create the same view in SQL Assistant you will get the comments along with the view structure.

Leave Your Comments Here

Popular Articles