Professional Documents
Culture Documents
What Is Partitioned Primary Index (PPI) in Teradata?: Advantages
What Is Partitioned Primary Index (PPI) in Teradata?: Advantages
The two bytes are for the number of bytes for the binary length of the field.
It stores the exact no of characters stored in varchar.
10. How to make sure BTEQ utility is not erroring out while dropping a table
when the table doesn’t exist in Teradata?
Setting the error level to 0 will achieve this.
ERRORLEVEL (3807) SEVERITY 0;
DROP TABLE TABLENAME;
ERRORLEVEL (3807) SEVERITY 8;
10. Which is faster – MultiLoad delete or Delete command in
Teradata?
MultiLoad delete is faster than normal Delete command, since the deletion happens in
data blocks of 64Kbytes, whereas delete command deletes data row by row.
Transient journal maintains entries only for Delete command since Teradata utilities
doesn’t support Transient journal loading
For smaller table deletes, simple DELETE command is enough. Multiload delete is
useful when the delete has to be performed on a large table in teradata.
11. Why Fload doesn’t support multiset table in Teradata?
Fload does not support Multiset table because of restart capability.
Say, the fastload job fails. Till the fastload failed, some number of rows was sent to
the AMP's.
Now if you restart FLOAD, it would start loading record from the last checkpoint
and some of the consecutive rows are sent for the second time. These will be caught
as duplicate rows are found after sorting of data.
This restart logic is the reason that Fastload will not load duplicate rows into a
MULTISET table. It assumes they are duplicates because of this logic. Fastload
support Multiset table but does not support the duplicate rows. Multiset tables are
tables that allow duplicate rows. When Fastload finds the duplicate rows it discards
it. Fast Load can load data into multiset table but will not load the duplicate rows
12. How to generate a sequence column in Teradata?
You can use the IDENTITY function. Create your table, and when you define the
columns, define an integer like:
My_ID_col INTEGER GENERATED ALWAYS AS IDENTITY (START WITH 1
INCREMENT BY 1 MINVALUE -2147483647 MAXVALUE 100000000 NO CYCLE);
13. A certain load is being imposed on the table and that too,
every hour. The traffic in the morning is relatively low, and that of the
night is very high. As per this situation, which is the most advisable utility
and how is that utility supposed to be loaded?
The most suggestible utility here has to be Tpump. By making use of packet size
decreasing or increasing, the traffic can be easily handled.
14. Highlight a few of the advantages that ETL tools have over TD.