Creating Volatile Table
Teradata Teradata Discussion Forums Teradata.com Discussion Forum
Visit Teradata.com
Home       Guidelines    Member List
Welcome Guest ( Login | Register )
        


This online forum is for user-to-user discussions of Teradata products, and is not an official customer support channel for Teradata. If you require direct assistance, please contact Teradata support.


Creating Volatile Table Expand / Collapse
Author
Message
Posted 8/28/2008 6:17:56 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 9/1/2008 5:58:18 AM
Posts: 9, Visits: 19
I would like to create a volatile table "UTS" in a database named "ABC". The syntax used was

CREATE VOLATILE TABLE ABC.UTS
(
Sale_Date DATE
,Sum_Sale DECIMAL(9,2)
,Avg_Sale DECIMAL(7,2)
,Max_Sale DECIMAL(7,2)
,Min_Sale DECIMAL(7,2)
)
ON COMMIT PRESERVE ROWS ;

But when I execute this syntax, i get the following error:
"Database name if specified must be the login user name for a volatile table".

Can anyone explain how this could be solved ?

thanks,
newtera
Post #12765
Posted 8/28/2008 7:31:58 AM
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Forum Members
Last Login: Today @ 7:30:07 AM
Posts: 197, Visits: 611
Hello,

Volatile tables are created in a user's session (user space) not in database. So, removing the "ABC." from the DDL will solve the issue.

Regards,

Adeel
Post #12766
« Prev Topic | Next Topic »


Reading This Topic Expand / Collapse
Active Users: 0 ( 0 guests, 0 members, 0 anonymous members )
No members currently viewing this topic.


All times are GMT -5:00, Time now is 10:34pm

Powered By InstantForum.NET v4.1.4 © 2008
Execution: 0.109. 9 queries. Compression Disabled.