Following is the syntax for creating Teradata Volatile table. Teradata provide a way to perform Update & Insert operations simultaneously on a table from other table. How to free some space in Teradata Database, Space used by Volatile Tables in Teradata, Teradata DATATYPES , RANGE and STORAGE SPACE. Also if you want to specify different primary index then you can mention it after “with data” clause. Volatile tables are created with the following syntax: CREATE VOLATILE TABLE Customer ( CustomerId INTEGER NOT NULL, LastName VARCHAR(255) ) PRIMARY INDEX (CustomerId) ON COMMIT PRESERVE ROWS; An in-depth comparison between Volatile Tables, Global Temporary Tables, and Derived Tables can be found here: Comparison of temporary table types. Volatile Tables are “temporary” tables that only exist within YOUR session. It is still only one Primary Index, but it is merely made up by combining multiple columns together. Teradata Partition Primary Index(PPI) PPI Characteristics: Partitioning can be done on volatile,global temporary and permanent tables. So you must make it “ON COMMIT PRESERVE ROWS”. We need to copy the data out to another table, volatile or permanent and then we can alter the index of the table. ROBIN SINGH S.ROBIN The main purpose of this feature which allows us to create tables with no primary index in Teradata is to improve the performance of FastLoad and Tpump … JHON KENNDY .K.JHON View Videos Vantage drivers, tools, applications, and more Efficiently access publicly available downloads you may need to make full use of Vantage. The Volatile tables in Teradata are created by the user and used only the duration they are logged into and dropped automatically by Teradata Manager once the user disconnects from the session. Each table in Teradata is required to have a primary index defined. Ans) The primary index for a volatile table can be nonpartitioned or row-partitioned. You can create a max of 1000 volatile tables in an active session. When you define a table, you can define a primary index and one or more secondary indexes. However for volatile DDL is removed too. But you can not define secondary index explicitly on VTTs. People complaining... Raj could you help us by letting us know how to... Hi Ly Kindly share the value of END_DATE column for which... Hi.I have a table with the following data type as date... 50 Teradata Interview Questions & Answers, Teradata Parallel Transporter TPT - Basics , Example and Syntax, How to find and fix Invalid Date Error in Teradata, Teradata Create Table Example- SET/Multiset/CTAS. Hi Kai, I have reverted the changes. PRIMARY INDEX IDX_NON_RTL_SALES_WIDE_01 ( col1 ,Col2 ,Col3 ); I want to remove col3 and add few other columns to it. Your SAS environment properly configured so that it will attach to Teradata. In Teradata, use keyword “VOLATILE” in CREATE statement to create a volatile table. Code: CREATE TABLE cust ( customer_name CHARACTER(8), policy_num INTEGER, policy_exp_dt DATE FORMAT 'YYYY/MM/DD') PRIMARY INDEX (customer_name, policy_num) PARTITION BY CASE_N(policy_exp_dt>= CURRENT_DATE, NO CASE); Output: 1. We will see how PPIs will improve the performance of a query. Default is “ON COMMIT DELETE ROWS” hence by default volatile table retains data at transaction level and not session level. CREATE VOLATILE TABLE student (rollno INT, first_name varchar (20), last_name varchar (20)) primary index (rollno) ON COMMIT PRESERVE ROWS; You can see that in the above example, we have mentioned ON COMMIT PRESERVE ROWS. If the primary index is not defined, Teradata automatically assigns the primary index.