Teradata Interview Questions and Answers

Teradata Interview Questions and Answers

Last updated on 19th Oct 2020, Blog, Interview Question

About author

Kennedy (Sr Teradata Architect )

He is Possessing 7+ Years Of Experience in Teradata. His Passion lies in Developing Entrepreneurs & Activities. Also, Rendered his intelligence to the Enthusiastic JOB Seekers.

(5.0) | 15486 Ratings 2415

Teradata is a Relational Database Management System that is suitable to use with large-scale data warehousing applications. The main concept behind this technology is parallelism.

1. What Is Basic Teradata Query Language?

Ans:

  • It allows us to write SQL statements along with BTEQ commands. We can use BTEQ for importing, exporting and reporting purposes.
  • The commands start with a (.) dot and can be terminated by using (;), it is not mandatory to use (;).
  • BTEQ will assume any thing written with out a dot as a SQL statement and requires a (;) to terminate it.

2. What Is The Difference Between Fastload And Multiload?

Ans:

FastLoad uses multiple sessions to quickly load large amount of data on empty table. MultiLoad is used for high-volume maintenance on tables and views. It works with non-empty tables also. Maximum 5 tables can be used in MultiLoad.

3. Which Is Faster Fastload Or Multiload?

Ans:

FastLoad.

4. Difference Between Inner Join And Outer Join?

Ans:

An inner join gets data from both tables where the specified data exists in both tables. An outer join gets data from the source table at all times, and returns data from the outer joined table ONLY if it matches the criteria.

5. What Is Multi Insert?

Ans:

Inserting data records into the table using multiple insert statements. Putting a semi colon in front of the key word INSERT in the next statement rather than terminating the first statement with a semi colon achieves it.

  • Insert into Sales “select * from customer”;
  • Insert into Loan “select * from customer”;

6. Is Multi Insert Ansi Standard?

Ans:

No.

7. How Do You Create A Table With An Existing Structure Of Another Table With Data And With No Data?

Ans:

  • Create table Customerdummy as Customer with data / with no data;

8. What Is The Opening Step In Basic Teradata Query Script?

Ans:

Logon tdipid/username, password.

9. Can You Fastexport A Field, Which Is Primary Key By Putting Equality On That Key?

Ans:

No.

10. Did You Write Stored Procedures In Teradata?

Ans:

No, because they become a single amp operation and my company didn’t encourage that.

11. What Is The Use Of Having Index’s On Table?

Ans:

For faster record search.

12. Is It Necessary To Add? Quit Statement After A Bteq Query When I Am Calling It In A Unix Environment?

Ans:

Not necessary but it is good to add a QUIT statement after a query.

13. There Is A Column With Date In It. If I Want To Get Just Month How It Can Be Done? Can I Use Sub String?

Ans:

Sub string is used with char fields. So it cannot be used. To extract month from a date column, ex

  • select extract (month from <column name>).

Same thing for year or day. Or hour or minutes if it’s a time stamp (select extract (minute from column name).

14. What’s The Syntax Of Sub String?

Ans:

  • SUBSTRING (string_expression, n1 [n2]).

15. While Creating Table My Dba Has Fallback Or No Fallback In His Ddl. What Is That?

Ans:

FALLBACK requests that a second copy of each row inserted into a table be stored on another AMP in the same cluster. This is done when AMP goes down or disk fails.

16. My Table Got Locked During Mload Due To A Failed Job. What Do I Do To Perform Other Operations On It?

Ans:

Using RELEASE MLOAD. It removes access locks from the target tables in Teradata. It must be entered from BTEQ and not from MultiLoad. To proceed, you can do RELEASE MLOAD <table name>.

Subscribe For Free Demo

Error: Contact form not found.

17. How To Find Duplicates In A Table?

Ans:

Group by those fields and select id, count(*) from table group by id having count (*) > 1.

18. How Do You Verify A Complicated Sql?

Ans:

I use explain statement to check if the query is doing what I wanted it to do.

19. How Many Tables Can You Join In V2r5?

Ans:

Up to 64 tables.

20. How Do You See A Ddl For An Existing Table?

Ans:

By using show table command.

21. Which Is More Efficient Group By Or Distinct To Find Duplicates?

Ans:

With more duplicates GROUP BY is more efficient, if only a few duplicates exist DISTINCT is more efficient.

22. Syntax For Case When Statement?

Ans:

  • CASE value_expression_1 WHEN value_expression_n THEN scalar_expression_n
  • END;

23. What’s The Difference Between Timestamp (0) And Timestamp (6)?

Ans:

TIMESTAMP (0) is CHAR (19) and TIMESTAMP (6) is CHAR (26)

Everything is same except that TIMESTAMP (6) has microseconds too.

24. How Do You Determine The Number Of Sessions?

Ans:

  • Teradata performance and workload.
  • Client platform type, performance and workload.
  • Channel performance for channel attached systems.
  • Network topology and performance for network attached systems.
  • Volume of data to be processed by the application.

25. What Is Node? How Many Nodes And Amps Used In Your Previous Project?

Ans:

Node is a database running in a server. We used 318 nodes and each node has 2 to 4 AMPS.

26. What Is A Clique?

Ans:

Clique is a group of disk arrays physically cabled to a group of nodes.

27. What Is The Purpose Of Indexes?

Ans:

An index is a mechanism that can be used by the SQL query optimizer to make table access more performant. Indexes enhance data access by providing a moreor- less direct path to stored data and avoiding the necessity to perform full table scans to locate the small number of rows you typically want to retrieve or update.

28. What Is Primary Index And Secondary Index?

Ans:

Primary index is the mechanism for assigning a data row to an AMP and a location on the AMP’s disks. Indexes also used to access rows from a table without having to search the entire table. Secondary indexes enhance set selection by specifying access paths less frequently used than the primary index path. Secondary indexes are also used to facilitate aggregate operations.

If a secondary index covers a query, then the Optimizer determines that it would be less costly to accesses its rows directly rather than using it to access the base table rows it points to. Sometimes multiple secondary indexes with low individual selectivity can be overlapped and bit mapped to provide enhanced.

29. What Are The Things To Be Considered While Creating Secondary Index?

Ans:

Creating a secondary index causes Teradata to build a sub-table to contain its index rows, thus adding another set of rows that requires updating each time a table row is inserted, deleted, or updated. Secondary index sub-tables are also duplicated whenever a table is defined with FALLBACK, so the maintenance overhead is effectively doubled.

30. What Is Collect Statistics?

Ans:

Collects demographic data for one or more columns of a table, hash index, or join index, computes a statistical profile of the collected data, and stores the synopsis in the data dictionary. The Optimizer uses the synopsis data when it generates its table access and join plans.

31. Can We Collect Statistics On Multiple Columns?

Ans:

Yes we can collect statistics on multiple columns.

32. Can We Collect Statistics On Table Level?

Ans:

Yes we can collect statistics on table level. The syntax is

  • COLLECT STAT ON TAB_A;

33. What Is Inner Join And Outer Join?

Ans:

An inner join gets data from both tables where the specified data exists in both tables. An outer join gets data from the source table at all times, and returns data from the outer joined table ONLY if it matches the criteria.

34. When Tpump Is Used Instead Of Multiload?

Ans:

TPump provides an alternative to MultiLoad for the low volume batch maintenance of large databases under control of a Teradata system. Instead of updating Teradata databases overnight, or in batches throughout the day, TPump updates information in real time, acquiring every bit of 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. And, unlike most load utilities, TPump uses row hash locks rather than table level locks. This allows you to run queries while TPump is running. This also means that TPump can be stopped instantaneously. As a result, businesses can make better decisions that are based on the most current data.

35. What Is Spool Space And When Running A Job If It Reaches The Maximum Spool Space How You Solve The Problem?

Ans:

Spool space is used to hold intermediate rows during processing, and to hold the rows in the answer set of a transaction. Spool space reaches maximum when the query is not properly optimized. Use appropriate conditions in WHERE clause of the query to limit the answer set.

Course Curriculum

Get Experts Curated Teradata Training with Industry Trends Concepts

  • Instructor-led Sessions
  • Real-life Case Studies
  • Assignments
Explore Curriculum

36. What Is Data Mart?

Ans:

A data mart is a special purpose subset of enterprise data used by a particular department, function or application. Data marts may have both summary and details data, however, usually the data has been pre aggregated or transformed in some way to better handle the particular type of requests of a specific user community. Data marts are categorized as independent, logical and dependant data marts.

37. Difference Between Star And Snowflake Schemas?

Ans:

Star schema is De-normalized and snowflake schema is normalized.

38. Why Are Oltp Database Designs Not Generally A Good Idea For A Data Warehouse?

Ans:

OLTP designs are for real time data and they are not normalized and preaggregated. They are not good for decision support systems.

39. What Type Of Indexing Mechanism Do We Need To Use For A Typical Data Warehouse?

Ans:

Primary Index mechanism is the ideal type of index for data warehouse.

40. What Is Real Time Data Warehousing?

Ans:

Real-time data warehousing is a combination of two things:

    • real-time activity and
    • data warehousing.

Real-time activity is activity that is happening right now. The activity could be anything such as the sale of widgets. Once the activity is complete, there is data about it. Data warehousing captures business activity data. Real-time data warehousing captures business activity data as it occurs. As soon as the business activity is complete and there is data about it, the completed activity data flows into the data warehouse and becomes available instantly. In other words, real-time data warehousing is a framework for deriving information from data as the data becomes available.

41. What Is Ods?

Ans:

An operational data store (ODS) is primarily a “dump” of relevant information from a very small number of systems (often just one) usually with little or no transformation. The benefits are an ad hoc query database, which does not affect the operation of systems required to run the business. ODS’s usually deal with data “raw” and “current” and can answer a limited set of queries as a result.

42. What Is Real Time And Near Real Time Data Warehousing?

Ans:

The difference between real time and near real time can be summed up in one word: latency. Latency is the time lag that is between an activity completion and the completed activity data being available in the data warehouse. In real time, the latency is negligible whereas in near real time the latency is a tangible time frame such as two hours.

43. What Are Normalization, First Normal Form, Second Normal Form And Third Normal Form?

Ans:

Normalization is the process of efficiently organizing data in a database. The two goals of the normalization process are eliminate redundant data (storing the same data in more than one table) and ensure data dependencies make sense (only storing related data in the table).

First normalization form:

Eliminate duplicate columns from the same table.

Create separate tables for each group of related data and identify each row with a unique column or set of columns (primary key).

Second normal form:

Removes sub set of data that apply to multiple rows of table and place them in separate table.

Create relationships between these new tables and their predecessors through the use of foreign keys.

Third normal form:

Remove column that are not dependent upon the primary key.

44. What Is Fact Table?

Ans:

The centralized table in a star schema is called as FACT table i.e; a table in that contains facts and connected to dimensions. A fact table typically has two types of columns: those that contain facts and those that are foreign keys to dimension tables. The primary key of a fact table is usually a composite key that is made up of all of its foreign keys. A fact table might contain either detail level facts or facts that have been aggregated (fact tables that contain aggregated facts are often instead called summary tables). In the real world, it is possible to have a fact table that contains no measures or facts. These tables are called as Factless Fact tables.

45. What Is Etl?

Ans:

Extract, transformation, and loading. ETL refers to the methods involved in accessing and manipulating source data and loading it into target database. The first step in ETL process is mapping the data between source systems and target database (data warehouse or data mart). The second step is cleansing of source data in staging area. The third step is transforming cleansed source data and then loading into the target system. Note that ETT (extract, transformation, transportation) and ETM (extraction, transformation, move) are sometimes used instead of ETL.

46. What Is Er Diagram?

Ans:

It is Entity relationship diagram. Describes the relationship among the entities in the database model.

47. What Is Data Mining?

Ans:

Analyzing large volumes of relatively simple data to extract important trends and new, higher level information. For example, a data-mining program might analyze millions of product orders to determine trends among top-spending customers, such as their likelihood to purchase again, or their likelihood to switch to a different vendor.

48. What Is Star Schema?

Ans:

Star Schema is a relational database schema for representing multi-dimensional data. It is the simplest form of data warehouse schema that contains one or more dimensions and fact tables. It is called a star schema because the entityrelationship diagram between dimensions and fact tables resembles a star where one fact table is connected to multiple dimensions. The center of the star schema consists of a large fact table and it points towards the dimension tables. The advantages of star schema are slicing down, performance increase and easy understanding of data.

49. What Is A Level Of Granularity Of A Fact Table?

Ans:

The components that make up the granularity of the fact table correspond directly with the dimensions of the data model. Thus, when you define the granularity of the fact table, you identify the dimensions of the data model. The granularity of the fact table also determines how much storage space the database requires. For example, consider the following possible granularities for a fact table:

  • Product by day by region
  • Product by month by region

The size of a database that has a granularity of product by day by region would be much greater than a database with a granularity of product by month by region because the database contains records for every transaction made each day as opposed to a monthly summation of the transactions. You must carefully determine the granularity of your fact table because too fine a granularity could result in an astronomically large database. Conversely, too coarse granularity could mean the data is not detailed enough for users to perform meaningful queries against the database.

50. What Is A Dimension Table?

Ans:

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.

51.  Have you used Net meeting?

Ans:

Yes. Used net meeting for team meeting when members of the team geographically in different locations.

52.  Do you have any question?

Ans:

What is the team size going to be? What is the current status of the project? What is the project schedule?

53.  What is your available date?

Ans:

Immediate. Or your available date for the project.

Course Curriculum

Get Practical Oriented Teradata Certification Course By Experts Trainers

Weekday / Weekend BatchesSee Batch Details

54.   How much experience you have in MVS?

Ans:

Intermediate. In my previous two projects used MVS to submit JCL jobs.

55.   Have you created JCL script from scratch?

Ans:

Yes. I have created JCL scripts from scratch while creating jobs in the development environment.

56.  Have you modified any JCL script and used?

Ans:

Yes I have modified JCL scripts. In my previous projects many applications were re-engineered so the existing JCL scripts were modified according to the company coding standards.

57.  Rate yourself on using Teradata tools like BTEQ, Query man, FastLoad, MultiLoad and Tpump!

Ans:

Intermediate to expert level. Extensively using for last 4 years. Also I am certified in Teradata.

58.  Which is your favorite area in the project?

Ans:

I enjoy every working on every part of the project. Volunteer my time for my peers so that I can also learn and contribute more towards the project success.

59.  Why should you put your data warehouse in a different system other than OLTP system?

Ans:

Relational Data Modeling (OLTP design)

Dimensional Data Modeling (OLAP design)

Data is stored in RDBMS

Data is stored in RDBMS or Multidimensional databases

Tables are units of storage

Cubes are units of storage

Data is normalized and used for OLTP. Optimized for OLTP processing

Data is de-normalized and used in data warehouse and data mart. Optimized for OLAP

Several tables and chains of relationships among them

Few tables and fact tables are connected to dimensional tables

Volatile (several updates) and time variant

Non volatile and time invariant

SQL is used to manipulate data

MDX is used to manipulate data

Detailed level of transactional data

Summary of bulky transactional data (Aggregates and Measures) used in business decisions

Normal Reports

User friendly, interactive, drag and drop multidimensional OLAP Reports

60.  What is VLDB?

Ans:

Very Large databases. Please find more information on it.

61.  What is the difference between OLTP and OLAP?

Ans:

Refer answer for question 61.

62.  What is a lookup table?

Ans:

Refer answer for questions 78. Dimension tables are sometimes called as lookup or reference tables.

63.  What are the various Reporting tools in the Market?

Ans:

Crystal reports, Business objects, micro strategy and etc.,

64.  What are the various ETL tools in the Market?

Ans:

Ab Initio, Informatica and etc.,

65.  What is a three-tier data warehouse?

Ans:

The three-tier differs from the two-tier architecture by strictly enforcing a logical separation of the graphical user interface, business logic, and data. The three-tier is widely used for data warehousing today. Organizations that require greater performance and scalability, the three-tier architecture may be more appropriate. In this architecture, data extracted from legacy systems is cleansed, transformed, and stored in high –speed database servers, which are used as the target database for front-end data access.

66.  Importance of Surrogate Key in Data warehousing?

Ans:

Surrogate Key is a Primary Key for a Dimension table. Most importance of using it is independent of underlying database. i.e. Surrogate Key is not affected by the changes going on with a database

67.  Differentiate Primary Key and Partition Key?

Ans:

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.

68.  Differentiate Database data and Data warehouse data?

Ans:

Data in a Database is Detailed or Transactional, Both Readable and Write able and current.

Data in data warehouse is detailed or summarized, storage place for historical data.

69.   What are OLAP, MOLAP, ROLAP, DOLAP and HOLAP? Examples?

Ans:

OLAP:

OLAP stands for Online Analytical Processing. It uses database tables (fact and dimension tables) to enable multidimensional viewing, analysis and querying of large amounts of data. E.g. OLAP technology could provide management with fast answers to complex queries on their operational data or enable them to analyze their company’s historical data for trends and patterns.

MOLAP:

Stands for Multidimensional OLAP. In MOLAP cubes the data aggregations and a copy of the fact data are stored in a multidimensional structure on the Analysis Server computer. It is best when extra storage space is available on the Analysis Server computer and the best query performance is desired. MOLAP local cubes contain all the necessary data for calculating aggregates and can be used offline. MOLAP cubes provide the fastest query response time and performance but require additional storage space for the extra copy of data from the fact table.

ROLAP:

Stands for Relational OLAP. In ROLAP cubes a copy of data from the fact table is not made and the data aggregates are stored in tables in the source relational database. A ROLAP cube is best when there is limited space on the Analysis Server and query performance is not very important. ROLAP local cubes contain the dimensions and cube definitions but aggregates are calculated when they are needed. A ROLAP cube requires less storage space than MOLAP and HOLAP cubes.

HOLAP:

Stands for Hybrid OLAP. A HOLAP cube has a combination of the ROLAP and MOLAP cube characteristics. It does not create a copy of the source data however; data aggregations are stored in a multidimensional structure on the Analysis Server computer. HOLAP cubes are best when storage space is limited but faster query responses are needed

70.  What is OLTP?

Ans:

OLTP stands for Online Transaction Processing. OLTP uses normalized tables to quickly record large amounts of transactions while making sure that these updates of data occur in as few places as possible. Consequently OLTP database are designed for recording the daily operations and transactions of a business. E.g. a timecard system that supports a large production environment must record successfully a large number of updates during critical periods like lunch hour, breaks, startup and close of work.

Teradata Sample Resumes! Download & Edit, Get Noticed by Top Employers! Download

71. What is staging area?

Ans:

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:

  •   Extracting data from multiple legacy systems
  • Cleansing the data, usually with a specialized tool
  • Integrating data from multiple legacy systems into a single data warehouse
  • Transforming legacy system keys into data warehouse keys, usually surrogate keys
  • Transforming disparate codes for gender, marital status, etc., into the data warehouse standard
  • Transforming the heterogeneous legacy data structures to the data warehouse data structures
  • Loading the various data warehouse tables via automated jobs in a particular sequence through the bulk loader provided with the data warehouse database or a third-party bulk loader

72. What is subject area?

Ans:

Subject area means fundamental entities that make up the major components of the business, e.g. customer, product, employee.

73. Why do we use DSS database for OLAP tools?

Ans:

Refer answer for questions 61.

74. What is tenacity?

Ans:

Number of hours Teradata utility will try to establish a connection to the system. Default is 4 hours.

75. What is a checkpoint?

Ans:

Checkpoints are entries posted to a restart log table at regular intervals during the data transfer operation. If processing stops while a job is running, you can restart the job at the most recent checkpoint.

76. What is slowly changing dimension?

Ans:

In a slowly changing dimension the attribute for a record varies over time. There are three ways to solve this problem.

Type 1 – Replace an old record with a new record. No historical data available.

Type 2 – Keep the old record and insert a new record. Historical data available but resources intensive.

Type 3 – In the existing record, maintain extra columns for the new values.

77. What is sleep?

Ans:

Number of minutes the Teradata utility will wait between logon attempts. Default is 6 minutes.

78.Difference between MultiLoad and TPump?

Ans:

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 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 result in more accurate, timely data. Tpump uses row hash locks than table level locks. This allows you to run queries while Pump is running.

79. Different phases of MultiLoad?

Ans:

  • Preliminary phase
  • DML phase
  • Acquisition phase
  • Application phase
  • End phase

80. Explain modifier?

Ans:

The explain modifier generates an English translation of the parser’s plan. It is fully parsed and optimized but not executed. Explain returns

  • Text showing how a statement will be processed.
  • As estimate of how many rows will be involved
  • A relative cost of the request in units of time.

This information is useful for predicting row counts, predicting performance, testing queries before production and analyzing various approaches to a problem.

81.Difference between oracle and Teradata warehouse!

Ans:

Teradata can handle multi tera bytes of data. Teradata is linearly expandable, uses matured optimizer, shared nothing architecture. Uses data parallelism.

The Teradata DBA’s never have to reorganize data or index space, pre-allocate table/index space, format partitions, tune buffer space, ensure the queries run in parallel, pre-process data for loading and write or run programs to split the input data into partitions for loading.

82.What is dimensional modeling?

Ans:

Dimensional Data Modeling comprises of one or more dimension tables and fact tables. Good examples of dimensions are location, product, time, promotion, organization etc. Dimension tables store records related to that particular dimension and no facts (measures) are stored in these tables

83.How will you solve the problem that occurs during update?

Ans:

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.

84.   Can you connect MultiLoad from Ab Initio?

Ans:

Yes we can connect.

85.What interface is used to connect to windows based applications?

Ans:

WinCLI interface.

Are you looking training with Right Jobs?

Contact Us

Popular Courses