Blog

TeraData Interview Questions

  • (4.0)
  •   |   4157 Ratings

TeraData Interview Questions

If you're looking for TeraData Interview Questions for Experienced or Freshers, you are at right place. There are lot of opportunities from many reputed companies in the world. According to research TeraData has a market share of about 9.8%. So, You still have opportunity to move ahead in your career in TeraData. Mindmajix offers Advanced TeraData Interview Questions 2018 that helps you in cracking your interview & acquire dream career as TeraData Developer.

Learn how to use TeraData, from beginner basics to advanced techniques, with online video tutorials taught by industry experts. Enroll for Free TeraData Training Demo!

Q. What are the different LOCKS in Teradata.
There are 4 types of LOCKS are there in Teradata, they are:

Read Lock, Access Lock, Exclusive Lock, Write Lock.

Q. My table got locked during MLOAD due to a failed job. What do I do to perform other operations on it?
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.

Q. How to find duplicates in a table?
Group by those fields and select id, count(*) from table group by id having count (*) > 1.

Q. How to you verify a complicated SQL?
I use explain statement to check if the query is doing what I wanted it to do.

Q. Did u ever use UPPER Function?
UPPER Function is used to convert all characters in a column to the same characters in upper case.

Q. What does a LOWER Function do?
LOWER function is used to convert all characters in a column to the lower case characters.

Q. How do you see a DDL for an existing table?
By using show table command.

Q. Which is more efficient GROUP BY or DISTINCT to find duplicates?
With more duplicates GROUP BY is more efficient, if only a few duplicates exist DISTINCT is more efficient.

Q. Syntax for CASE WHEN statement?
CASE value_expression_1 WHEN value_expression_n THEN scalar_expression_n END;

Q. What’s the difference between TIMESTAMP (0) and TIMESTAMP (6)?
TIMESTAMP (0) is CHAR (19) and TIMESTAMP (6) is CHAR (26)
Everything is same except that TIMESTAMP (6) has microseconds too.

Q. How do you determine the number of sessions?
1. Teradata performance and workload
2. Client platform type, performance and workload
3. Channel performance for channel attached systems
4. Network topology and performance for network attached systems.
5. Volume of data to be processed by the application.

Q. What is node? How many nodes and AMPs used in your previous project?
Node is a database running in a server. We used 318 nodes and each node has 2 to 4 AMPS.

Q. What is a clique?
Clique is a group of disk arrays physically cabled to a group of nodes.

Q. What is the difference between FastLoad and MultiLoad?
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.

Check Out TeraData Tutorials

Q. Have you used procedures?
No. I have not used procedures. But I have expertise knowledge writing procedures. My company have not encouraged me to write procedures because it becomes single AMP operation, as such uses lot of resources and expensive in terms of resource and time.

Q. What is the purpose of indexes?
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 more-or-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.

Q. What is primary index and secondary index?
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

Q. Why primary and secondary index is used?
Refer answer from previous question.

Q. What are the things to considered while creating secondary index?
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.

Explore TeraData Sample Resumes! Download & Edit, Get Noticed by Top Employers!Download Now!

 


Popular Courses in 2018

Get Updates on Tech posts, Interview & Certification questions and training schedules