InterviewSolution
This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
What Are The Basic Rules That Define How Pi Is Defined In Teradata? |
|
Answer» The following rules govern how Primary INDEXES in a Teradata Database must be defined as well as how they function: The following rules govern how Primary Indexes in a Teradata Database must be defined as well as how they function: |
|
| 2. |
What Is A Common Data Source For The Central Enterprise Data Warehouse? |
|
Answer» ODS=>OPERATIONAL DATA SOURCE. ODS=>Operational Data Source. |
|
| 3. |
What Are The Enhanced Features In Teradata V2r5 And V2r6? |
|
Answer» V2R6 included the feature of replica in it. in which copy of DATA base are available on ANOTHER system which MEANS V2R6 provide the additional data PROTECTION as comparison to V2R5 while if data from one system has been vanishes. V2R6 included the feature of replica in it. in which copy of data base are available on another system which means V2R6 provide the additional data protection as comparison to V2R5 while if data from one system has been vanishes. |
|
| 4. |
What Is An Optimization And Performance Tuning And How Does It Really Work In Practical Projects? |
|
Answer» Performance tuning and OPTIMIZATION of a QUERY involves collecting statistics on join columns, avoiding cross product join, selection of appropriate primary INDEX (to AVOID skewness in storage) and USING secondary index. Performance tuning and optimization of a query involves collecting statistics on join columns, avoiding cross product join, selection of appropriate primary index (to avoid skewness in storage) and using secondary index. |
|
| 5. |
Teradata Performance Tuning And Optimization? |
|
Answer» 1. collecting statistics. 1. collecting statistics. |
|
| 6. |
Can We Load A Multi Set Table Using Mload? |
|
Answer» We can Load SET, MULTISET tables using Mload, But here when loading into MULTISET table using MLOAD DUPLICATE rows will not be REJECTED, we have to take CARE of them before loading.But in CASE of Fload when we are loading into MULTISET duplicate rows are automatically rejected, FLOAD will not load duplicate rows weather table is SET or MULTISET. We can Load SET, MULTISET tables using Mload, But here when loading into MULTISET table using MLOAD duplicate rows will not be rejected, we have to take care of them before loading.But in case of Fload when we are loading into MULTISET duplicate rows are automatically rejected, FLOAD will not load duplicate rows weather table is SET or MULTISET. |
|
| 7. |
Can I Use "drop" Statement In The Utility "fload"? |
|
Answer» YES,But you have to DECLARE it out of the FLOAD Block it MEANS it should not come between .begin loading,.END loading FLOAD ALSO supports DELETE,CREATE,DROP statements which we have to declare out of FLOAD blocking the FLOAD Block we can give only INSERT. YES,But you have to declare it out of the FLOAD Block it means it should not come between .begin loading,.end loading FLOAD also supports DELETE,CREATE,DROP statements which we have to declare out of FLOAD blocking the FLOAD Block we can give only INSERT. |
|
| 8. |
In A Table Can We Use Primary Key In One Column And In Another Column Both Unique And Not Null Constrains.if Yes How? |
|
Answer» Yes, you can have a column for Primary key and have another column which will have no DUPLICATES or NULL. e.g. A SALARY Table will have employee ID as primary key. The table ALSO contains TAX-ID which can not be null or DUPLICATE. Yes, you can have a column for Primary key and have another column which will have no duplicates or null. e.g. A Salary Table will have employee ID as primary key. The table also contains TAX-ID which can not be null or duplicate. |
|
| 9. |
What Are The Types Of Tables In Teradata ? |
|
Answer» 1. set table. 1. set table. |
|
| 10. |
Can You Recover The Password Of A User In Teradata? |
|
Answer» No, you can’t recover the password of a user in TERADATA. Passwords are stored in this data DICTIONARY table (DBC.DBASE) using a one-way encryption method. You can VIEW the encrypted passwords using the following query. SELECT * FROM DBC.DBASE;No, you can’t recover the password of a user in Teradata. Passwords are stored in this data dictionary table (DBC.DBASE) using a one-way encryption method. You can view the encrypted passwords using the following query. |
|
| 11. |
How Can You Find The Teradata Release And Version Information From Data Dictionary Table? |
|
Answer» To FIND RELEASE and VERSION INFORMATION you can query this Data Dictionary table DBC.DBCINFO SELECT * FROM DBC.DBCINFO;To find Release and Version information you can query this Data Dictionary table DBC.DBCINFO |
|
| 12. |
How Do You Transfer Large Amount Of Data In Teradata? |
|
Answer» Transferring of LARGE AMOUNT of data can be done USING various Application Teradata UTILITIES which resides on the host computer ( Mainframe or Workstation) i.e. BTEQ, FastLaod, MultiLoad, Tpump and FastExport.
Transferring of large amount of data can be done using various Application Teradata Utilities which resides on the host computer ( Mainframe or Workstation) i.e. BTEQ, FastLaod, MultiLoad, Tpump and FastExport.
|
|
| 13. |
How Does Hashing Happens In Teradata? |
Answer»
|
|
| 14. |
How To Eliminate Product Joins In A Teradata Sql Query? |
|
Answer» 1. Ensure statistics are collected on join columns and this is especially IMPORTANT if the columns you are joining on are not unique. 1. Ensure statistics are collected on join columns and this is especially important if the columns you are joining on are not unique. |
|
| 15. |
How To Select First N Records In Teradata? |
|
Answer» To select N records in Teradata you can use RANK function. QUERY syntax would be as FOLLOWS SELECT BOOK_NAME, BOOK_COUNT, RANK(BOOK_COUNT)A FROM LIBRARY QUALIFY A <= 10;To select N records in Teradata you can use RANK function. Query syntax would be as follows |
|
| 16. |
How To View Every Column And The Columns Contained In Indexes In Teradata? |
|
Answer» Following QUERY describes each column in the Teradata RDBMS SELECT * FROM DBC.TVFields;Following query describes COLUMNS CONTAINED in INDEXES in the Teradata RDBMS SELECT * FROM DBC.Indexes;Following query describes each column in the Teradata RDBMS Following query describes columns contained in indexes in the Teradata RDBMS |
|
| 17. |
What Are The 5 Phases In A Multiload Utility? |
Answer»
|
|
| 18. |
What Are The Functions Of A Teradata Dba? |
|
Answer» Following are the DIFFERENT functions which a DBA can perform: Following are the different functions which a DBA can perform: |
|
| 19. |
What Are The Multiload Utility Limitations? |
|
Answer» MultiLoad is a very powerful utility; it has FOLLOWING LIMITATIONS:
MultiLoad is a very powerful utility; it has following limitations:
|
|
| 20. |
What Are Tpump Utility Limitations? |
|
Answer» Following are the limitations of Teradata TPUMP UTILITY:
Following are the limitations of Teradata TPUMP Utility:
|
|
| 21. |
How Can You Track Login Parameters Of Users In Teradata? |
|
Answer» SELECT LOGDATE, LOGTIME, USERNAME, EVENT FROM DBC.LOGONOFF; SELECT LOGDATE, LOGTIME, USERNAME, EVENT FROM DBC.LOGONOFF; |
|
| 22. |
What Do High Confidence, Low Confidence And No Confidence Mean In Explain Plan? |
|
Answer» Explain gives the execution strategy means what are the different steps that the query will go through. Explain gives the execution strategy means what are the different steps that the query will go through. |
|
| 23. |
Why Does Varchar Occupy 2 Extra Bytes? |
|
Answer» 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. . 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. . |
|
| 24. |
Can You Load Multiple Data Files For Same Target Table Using Fastload? |
|
Answer» YES, we can Load a table using multiple datafiles in FASTLOAD. Before GIVING "end LOADING" statement user can define file path and use insert sql for multiple source files and give "end loading" statement at the end. Yes, we can Load a table using multiple datafiles in Fastload. Before giving "end loading" statement user can define file path and use insert sql for multiple source files and give "end loading" statement at the end. |
|
| 25. |
How To Identify Ppi Columns? |
|
Answer» Answer : SELECT DATABASENAME , TABLENAME , columnposition ,columnname from dbc.indices where indextype ='Q' ORDER by 1 ,2,3 ; |
|
| 26. |
What Are The Scenarios In Which Full Table Scans Occurs? |
|
Answer» 1. The where clause in SELECT STATEMENT does not use either primary index or secondary index. 1. The where clause in SELECT statement does not use either primary index or secondary index. |
|
| 27. |
What Are Differences Between Teradata And Ansi Session Modes In Teradata? |
|
Answer» TERADATA MODE: ANSI MODE: TERADATA MODE: ANSI MODE: |
|
| 28. |
What Is Difference B/w User And Database In Teradata? |
|
Answer» - USER is a database with password but database cannot have password. - User is a database with password but database cannot have password. |
|
| 29. |
Difference Between Stored Procedure And Macro? |
|
Answer» Stored PROCEDURE:
Stored Procedure: Macros: |
|
| 30. |
What Is A Sparse Index? |
|
Answer» SPARSE Join Indexes are a type of Join Index which contains a WHERE clause that reduces the number of rows which WOULD otherwise be INCLUDED in the index. All types of join indexes, including SINGLE table, multitable, simple or aggregate can be sparse. Sparse Join Indexes are a type of Join Index which contains a WHERE clause that reduces the number of rows which would otherwise be included in the index. All types of join indexes, including single table, multitable, simple or aggregate can be sparse. |
|
| 31. |
What Are Types Of Partition Primary Index (ppi) In Teradata? |
|
Answer» 1. Partition by CASE 1. Partition by CASE |
|
| 32. |
What Does Sleep Function Does In Fast Load? |
|
Answer» The SLEEP command specifies the amount minutes to wait before retrying to logon and establish all SESSIONS. Sleep command can be USED with all load utilities not only fastload. This situation can occur if all of the LOADER slots are used or if the NUMBER of requested sessions is not available. The default value is 6 minutes. If tenacity was SET to 2 hours and sleep 10 minutes, Sleep command will try to logon for every 10 minutes up to 2 hours duration. The SLEEP command specifies the amount minutes to wait before retrying to logon and establish all sessions. Sleep command can be used with all load utilities not only fastload. This situation can occur if all of the loader slots are used or if the number of requested sessions is not available. The default value is 6 minutes. If tenacity was set to 2 hours and sleep 10 minutes, Sleep command will try to logon for every 10 minutes up to 2 hours duration. |
|
| 33. |
How Many Types Of Index Are Present In Teradata? |
|
Answer» There are 5 different indices present in Teradata There are 5 different indices present in Teradata |
|
| 34. |
How Do You Set The Session Mode Parameters In Bteq? |
Answer»
|
|
| 35. |
What Is The Command In Bteq To Check For Session Settings ? |
|
Answer» The BTEQ .SHOW CONTROL command DISPLAYS BTEQ SETTINGS. The BTEQ .SHOW CONTROL command displays BTEQ settings. |
|
| 36. |
What Is Filler Command In Teradata? |
|
Answer» while using the MLOAD of fastload if you dont want to load a PARTICULAR filed in the DATAFILE to the target then use this FILLER command to achieve this. while using the mload of fastload if you dont want to load a particular filed in the datafile to the target then use this filler command to achieve this. |
|
| 37. |
What Is The Difference Between Global Temporary Tables And Volatile Temporary Tables? |
|
Answer» Global Temporary TABLES (GTT) - Volatile Temporary tables (VTT) - Global Temporary tables (GTT) - Volatile Temporary tables (VTT) - |
|
| 38. |
How Teradata Makes Sure That There Are No Duplicate Rows Being Inserted When Its A Set Table? |
|
Answer» Teradata will redirect the NEW INSERTED row as per its PI to the target AMP (on the basis of its row hash value), and if it find same row hash value in that AMP (hash synonyms) then it START comparing the whole row, and find out if duplicate. If its a duplicate it silently SKIPS it without throwing any ERROR. Teradata will redirect the new inserted row as per its PI to the target AMP (on the basis of its row hash value), and if it find same row hash value in that AMP (hash synonyms) then it start comparing the whole row, and find out if duplicate. If its a duplicate it silently skips it without throwing any error. |
|
| 39. |
How Many Codd's Rules Are Satisfied By Teradata Database? |
|
Answer» There are 12 CODD's RULES APPLIED to the TERADATA database. There are 12 codd's rules applied to the teradata database. |
|
| 40. |
What Is The Maximum Number Of Dml Can Be Coded In A Multiload Script? |
|
Answer» MAXIMUM 5 DML can be CODED in a MultiLoad SCRIPT. Maximum 5 DML can be coded in a MultiLoad script. |
|
| 41. |
What Is Logical Data Model? |
|
Answer» A Logical data model is the version of a data model that represents the business requirements (entire or part) of an organization and is developed before the physical data model. A sound logical design should STREAMLINE the physical design process by clearly defining data structures and the relationships between them. A good data model is created by clearly thinking about the current and FUTURE business requirements. Logical data model includes all REQUIRED entities, attributes, KEY GROUPS, and relationships that represent business information and define business rules. A Logical data model is the version of a data model that represents the business requirements (entire or part) of an organization and is developed before the physical data model. A sound logical design should streamline the physical design process by clearly defining data structures and the relationships between them. A good data model is created by clearly thinking about the current and future business requirements. Logical data model includes all required entities, attributes, key groups, and relationships that represent business information and define business rules. |
|
| 42. |
What Interface Is Used To Connect To Windows Based Applications? |
|
Answer» WinCLI INTERFACE. WinCLI interface. |
|
| 44. |
How Will You Solve The Problem That Occurs During Update? |
|
Answer» When there is an error during the UPDATE PROCESS, an ENTRY is posted in the error log table. Query the log table and fix the error and RESTART the JOB. When there is an error during the update process, an entry is posted in the error log table. Query the log table and fix the error and restart the job. |
|
| 45. |
Different Phases Of Multiload? |
|
Answer» • Preliminary PHASE. • Preliminary phase. |
|
| 46. |
Difference Between Multiload And Tpump? |
|
Answer» Tpump provides an alternative to MULTILOAD for low volume batch maintenance of large databases under control of a Teradata system. Tpump updates information in real time, acquiring every bit of a data from the client system with low processor utilization. It does this through a continuous feed of data into the data warehouse, rather than the TRADITIONAL batch updates. Continuous updates RESULTS in more accurate, TIMELY data. Tpump uses row hash locks than table LEVEL locks. This allows you to run queries while Tpump is running. Tpump provides an alternative to MultiLoad for low volume batch maintenance of large databases under control of a Teradata system. Tpump updates information in real time, acquiring every bit of a data from the client system with low processor utilization. It does this through a continuous feed of data into the data warehouse, rather than the traditional batch updates. Continuous updates results in more accurate, timely data. Tpump uses row hash locks than table level locks. This allows you to run queries while Tpump is running. |
|
| 47. |
What Is Subject Area? |
|
Answer» SUBJECT AREA means fundamental ENTITIES that make up the major components of the business, e.g. CUSTOMER, product, employee. Subject area means fundamental entities that make up the major components of the business, e.g. customer, product, employee. |
|
| 48. |
What Is Staging Area? |
|
Answer» The data STAGING area is a system that stands between the legacy systems and the analytics system, usually a data warehouse and sometimes an ODS. The data staging area is considered the "back room" portion of the data warehouse ENVIRONMENT. The data staging area is where the extract, transform and LOAD (ETL) takes place and is out of bounds for end users. Some of the functions of the data staging area include:
The data staging area is a system that stands between the legacy systems and the analytics system, usually a data warehouse and sometimes an ODS. The data staging area is considered the "back room" portion of the data warehouse environment. The data staging area is where the extract, transform and load (ETL) takes place and is out of bounds for end users. Some of the functions of the data staging area include: |
|
| 49. |
Differentiate Primary Key And Partition Key? |
|
Answer» Primary Key is a combination of unique and not null. It can be a collection of key values called as composite primary key. Partition Key is a just a PART of Primary Key. There are several METHODS of partition like HASH, DB2, and Random ETC. While using Hash partition we SPECIFY the Partition Key. Primary Key is a combination of unique and not null. It can be a collection of key values called as composite primary key. Partition Key is a just a part of Primary Key. There are several methods of partition like Hash, DB2, and Random etc. While using Hash partition we specify the Partition Key. |
|
| 50. |
What Is A Dimension Table? |
|
Answer» DIMENSION table is one that describes the BUSINESS ENTITIES of an enterprise, represented as hierarchical, categorical information such as time, departments, locations, and products. Dimension tables are sometimes called lookup or reference tables. In a relational DATA modeling, for normalization purposes, country lookup, state lookup, COUNTY lookup, and city lookups are not merged as a single table. In a dimensional data modeling (star schema), these tables would be merged as a single table called LOCATION DIMENSION for performance and slicing data requirements. This location dimension helps to compare the sales in one region with another region. We may see good sales profit in one region and loss in another region. If it is a loss, the reasons for that may be a new competitor in that area, or failure of our marketing strategy etc. Dimension table is one that describes the business entities of an enterprise, represented as hierarchical, categorical information such as time, departments, locations, and products. Dimension tables are sometimes called lookup or reference tables. In a relational data modeling, for normalization purposes, country lookup, state lookup, county lookup, and city lookups are not merged as a single table. In a dimensional data modeling (star schema), these tables would be merged as a single table called LOCATION DIMENSION for performance and slicing data requirements. This location dimension helps to compare the sales in one region with another region. We may see good sales profit in one region and loss in another region. If it is a loss, the reasons for that may be a new competitor in that area, or failure of our marketing strategy etc. |
|