-
- 1. What Is Basic Teradata Query Language?
1. It allows us to write SQL statements along with BTEQ commands. We can use BTEQ for importing, exporting and reporting purposes.
2. The commands start with a (.) dot and can be terminated by using (;), it is not mandatory to use (;).
3. BTEQ will assume any thing written with out a dot as a SQL statement and requires a (;) to terminate it.
- 1. What Is Basic Teradata Query Language?
-
- 2. 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.
- 2. What Is The Difference Between Fastload And Multiload?
Microstrategy Interview Questions
-
- 3. Which Is Faster Fastload Or Multiload?
FastLoad.
- 3. Which Is Faster Fastload Or Multiload?
-
- 4. Difference Between Inner Join And Outer Join?
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.
- 4. Difference Between Inner Join And Outer Join?
Microstrategy Tutorial
-
- 5. What Is Multi Insert?
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”;
- 5. What Is Multi Insert?
Informatica Interview Questions
-
- 6. Is Multi Insert Ansi Standard?
No.
- 6. Is Multi Insert Ansi Standard?
-
- 7. How Do You Create A Table With An Existing Structure Of Another Table With Data And With No Data?
Create table Customerdummy as Customer with data / with no data;
- 7. How Do You Create A Table With An Existing Structure Of Another Table With Data And With No Data?
Informatica Tutorial
MySQL Interview Questions
-
- 8. What Is The Opening Step In Basic Teradata Query Script?
.Logon tdipid/username, password.
- 8. What Is The Opening Step In Basic Teradata Query Script?
-
- 9. Can You Fastexport A Field, Which Is Primary Key By Putting Equality On That Key?
No.
- 9. Can You Fastexport A Field, Which Is Primary Key By Putting Equality On That Key?
Oracle 11g Interview Questions
-
- 10. Did You Write Stored Procedures In Teradata?
No, because they become a single amp operation and my company didn’t encourage that.
- 10. Did You Write Stored Procedures In Teradata?
MySQL Tutorial
-
- 11. What Is The Use Of Having Index’s On Table?
For faster record search.
- 11. What Is The Use Of Having Index’s On Table?
Hadoop Interview Questions
-
- 12. Is It Necessary To Add? Quit Statement After A Bteq Query When I Am Calling It In A Unix Environment?
Not necessary but it is good to add a QUIT statement after a query.
- 12. Is It Necessary To Add? Quit Statement After A Bteq Query When I Am Calling It In A Unix Environment?
Microstrategy Interview Questions
-
- 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?
Sub string is used with char fields. So it cannot be used. To extract month from a date column, ex select extract (month from ). Same thing for year or day. Or hour or minutes if it’s a time stamp (select extract (minute from column name).
- 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?
Oracle 11g Tutorial
-
- 14. What’s The Syntax Of Sub String?
SUBSTRING (string_expression, n1 [n2]).
- 14. What’s The Syntax Of Sub String?
-
- 15. While Creating Table My Dba Has Fallback Or No Fallback In His Ddl.
What Is That?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.
- 15. While Creating Table My Dba Has Fallback Or No Fallback In His Ddl.
TeraData DBA Interview Questions
-
- 16. 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
.
- 16. My Table Got Locked During Mload Due To A Failed Job. What Do I Do To Perform Other Operations On It?
Hadoop Tutorial
-
- 17. How To Find Duplicates In A Table?
Group by those fields and select id, count(*) from table group by id having count (*) > 1.
- 17. How To Find Duplicates In A Table?
MYSQL DBA Interview Questions
-
- 18. How Do You Verify A Complicated Sql?
I use explain statement to check if the query is doing what I wanted it to do.
- 18. How Do You Verify A Complicated Sql?
Informatica Interview Questions
-
- 19. How Many Tables Can You Join In V2r5?
Up to 64 tables.
- 19. How Many Tables Can You Join In V2r5?
-
- 20. How Do You See A Ddl For An Existing Table?
By using show table command.
- 20. How Do You See A Ddl For An Existing Table?
Database Administration Interview Questions
-
- 21. 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.
- 21. Which Is More Efficient Group By Or Distinct To Find Duplicates?
-
- 22. Syntax For Case When Statement?
CASE value_expression_1 WHEN value_expression_n THEN scalar_expression_n
END;
- 22. Syntax For Case When Statement?
-
- 23. 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.
- 23. What’s The Difference Between Timestamp (0) And Timestamp (6)?
DB2 SQL Programming Interview Questions
-
- 24. How Do You Determine The Number Of Sessions?
- 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.
- 24. How Do You Determine The Number Of Sessions?
MySQL Interview Questions
-
- 25. 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.
- 25. What Is Node? How Many Nodes And Amps Used In Your Previous Project?
-
- 26. What Is A Clique?
Clique is a group of disk arrays physically cabled to a group of nodes.
- 26. What Is A Clique?
Hadoop Administration Interview Questions
-
- 27. 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 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.
- 27. What Is The Purpose Of Indexes?
Oracle 11g Interview Questions
-
- 28. 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.
- 28. What Is Primary Index And Secondary Index?
-
- 29. What Are The Things To Be 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.
- 29. What Are The Things To Be Considered While Creating Secondary Index?
Java Hadoop Developer Interview Questions
-
- 30. What Is Collect Statistics?
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.
- 30. What Is Collect Statistics?
-
- 31. Can We Collect Statistics On Multiple Columns?
Yes we can collect statistics on multiple columns.
- 31. Can We Collect Statistics On Multiple Columns?
-
- 32. Can We Collect Statistics On Table Level?
Yes we can collect statistics on table level. The syntax is COLLECT STAT ON TAB_A;
- 32. Can We Collect Statistics On Table Level?
Informatica MDM Interview Questions
-
- 33. What Is Inner Join And Outer Join?
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.
- 33. What Is Inner Join And Outer Join?
Hadoop Interview Questions
-
- 34. When Tpump Is Used Instead Of Multiload?
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.
- 34. When Tpump Is Used Instead Of Multiload?
-
- 35. What Is Spool Space And When Running A Job If It Reaches The Maximum Spool Space How You Solve The Problem?
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.
- 35. What Is Spool Space And When Running A Job If It Reaches The Maximum Spool Space How You Solve The Problem?
-
- 36. What Is Data Mart?
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.
- 36. What Is Data Mart?
TeraData DBA Interview Questions
-
- 37. Difference Between Star And Snowflake Schemas?
Star schema is De-normalized and snowflake schema is normalized.
- 37. Difference Between Star And Snowflake Schemas?
-
- 38. Why Are Oltp Database Designs Not Generally A Good Idea For A Data Warehouse?
OLTP designs are for real time data and they are not normalized and preaggregated. They are not good for decision support systems.
- 38. Why Are Oltp Database Designs Not Generally A Good Idea For A Data Warehouse?
-
- 39. What Type Of Indexing Mechanism Do We Need To Use For A Typical Data Warehouse?
Primary Index mechanism is the ideal type of index for data warehouse.
- 39. What Type Of Indexing Mechanism Do We Need To Use For A Typical Data Warehouse?
-
- 40. What Is Real Time Data Warehousing?
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.
- 40. What Is Real Time Data Warehousing?
MYSQL DBA Interview Questions
-
- 41. What Is Ods?
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.
- 41. What Is Ods?
-
- 42. What Is Real Time And Near Real Time Data Warehousing?
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.
- 42. What Is Real Time And Near Real Time Data Warehousing?
Database Administration Interview Questions
-
- 43. What Are Normalization, First Normal Form, Second Normal Form And
Third Normal Form?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.
- 43. What Are Normalization, First Normal Form, Second Normal Form And
-
- 44. What Is Fact Table?
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.
- 44. What Is Fact Table?
-
- 45. What Is Etl?
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.
- 45. What Is Etl?
-
- 46. What Is Er Diagram?
It is Entity relationship diagram. Describes the relationship among the entities in the database model.
- 46. What Is Er Diagram?
-
- 47. What Is Data Mining?
Analyzing of 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.
- 47. What Is Data Mining?
-
- 48. What Is Star Schema?
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.
- 48. What Is Star Schema?
-
- 49. What Is A Level Of Granularity Of A Fact Table?
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.
- 49. What Is A Level Of Granularity Of A Fact Table?
-
- 50. What Is A Dimension Table?
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.
- 50. What Is A Dimension Table?
-
- 51. What Are The Various Reporting Tools In The Market?
Crystal reports, Business objects, micro strategy and etc.,
- 51. What Are The Various Reporting Tools In The Market?
-
- 52. What Are The Various Etl Tools In The Market?
Ab Initio, Informatica and etc.
- 52. What Are The Various Etl Tools In The Market?
-
- 53. What Is A Three-tier Data Warehouse?
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.
- 53. What Is A Three-tier Data Warehouse?
-
- 54. Differentiate Primary Key And 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.
- 54. Differentiate Primary Key And Partition Key?
-
- 55. Differentiate Database Data And Data Warehouse Data?
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.
- 55. Differentiate Database Data And Data Warehouse Data?
-
- 56. What Is Oltp?
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.
- 56. What Is Oltp?
-
- 57. What Is Staging Area?
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.
- 57. What Is Staging Area?
-
- 58. What Is Subject Area?
Subject area means fundamental entities that make up the major components of the business, e.g. customer, product, employee.
- 58. What Is Subject Area?
-
- 59. What Is A Checkpoint?
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.
- 59. What Is A Checkpoint?
-
- 60. What Is Slowly Changing Dimension?
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.
- 60. What Is Slowly Changing Dimension?
-
- 61. Difference Between Multiload And Tpump?
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.
- 61. Difference Between Multiload And Tpump?
-
- 62. Different Phases Of Multiload?
• Preliminary phase.
• DML phase.
• Acquisition phase.
• Application phase.
• End phase.
- 62. Different Phases Of Multiload?
-
- 63. What Is Dimensional Modeling?
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.
- 63. What Is Dimensional Modeling?
-
- 64. How Will You Solve The Problem That Occurs During Update?
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.
- 64. How Will You Solve The Problem That Occurs During Update?
-
- 65. Can You Connect Multiload From Ab Initio?
Yes we can connect.
- 65. Can You Connect Multiload From Ab Initio?
-
- 66. What Interface Is Used To Connect To Windows Based Applications?
WinCLI interface.
- 66. What Interface Is Used To Connect To Windows Based Applications?
-
- 67. What Is Data Warehousing?
A data warehouse is a subject oriented, integrated, time variant, non-volatile collection of data in support of management’s decision-making process.
- 67. What Is Data Warehousing?
-
- 68. What Is Data Modeling?
A Data model is a conceptual representation of data structures (tables) required for a database and is very powerful in expressing and communicating the business requirements.
- 68. What Is Data Modeling?
-
- 69. What Is Logical Data Model?
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.
- 69. What Is Logical Data Model?
-
- 70. Steps To Create A Data Model?
- Get business requirements.
- Create High Level Conceptual Data Model.
- Create Logical Data Model.
- Select target DBMS where data-modeling tool creates the physical schema.
- Create standard abbreviation document according to business standard.
- 70. Steps To Create A Data Model?
-
- 71. What Is The Maximum Number Of Dml Can Be Coded In A Multiload Script?
Maximum 5 DML can be coded in a MultiLoad script.
- 71. What Is The Maximum Number Of Dml Can Be Coded In A Multiload Script?
-
- 72. Does Sdlc Changes When You Use Teradata Instead Of Oracle?
- If the teradata is going to be only a data base means It won’t change the System development life cycle (SDLC).
- If you are going to use the teradata utilities then it will change the Architecture or SDLC.
- If your schema is going to be in 3NF then there won’t be huge in change.
- 72. Does Sdlc Changes When You Use Teradata Instead Of Oracle?
-
- 73. How Many Codd’s Rules Are Satisfied By Teradata Database?
There are 12 codd’s rules applied to the teradata database.
- 73. How Many Codd’s Rules Are Satisfied By Teradata Database?
-
- 74. How Teradata Makes Sure That There Are No Duplicate Rows Being Inserted When Its A Set Table?
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.
- 74. How Teradata Makes Sure That There Are No Duplicate Rows Being Inserted When Its A Set Table?
-
- 75. What Is The Difference Between Global Temporary Tables And Volatile Temporary Tables?
Global Temporary tables (GTT) –
1. When they are created, its definition goes into Data Dictionary.
2. When materialized data goes in temp space.
3. thats why, data is active upto the session ends, and definition will remain there upto its not dropped using Drop table statement.
If dropped from some other session then its should be Drop table all;
4. you can collect stats on GTT.Volatile Temporary tables (VTT) –
1. Table Definition is stored in System cache
2. Data is stored in spool space.
3. thats why, data and table definition both are active only upto session ends.
4. No collect stats for VTT.
- 75. What Is The Difference Between Global Temporary Tables And Volatile Temporary Tables?
-
- 76. What Is Filler Command In Teradata?
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.
- 76. What Is Filler Command In Teradata?
-
- 77. What Is The Command In Bteq To Check For Session Settings ?
The BTEQ .SHOW CONTROL command displays BTEQ settings.
- 77. What Is The Command In Bteq To Check For Session Settings ?
-
- 78. How Do You Set The Session Mode Parameters In Bteq?
- set session transaction ANSI /* this is to set ANSI mode */
- set session transaction BTET /* this is to set Teradata transaction mode */
- 78. How Do You Set The Session Mode Parameters In Bteq?
-
- 79. How Many Types Of Index Are Present In Teradata?
There are 5 different indices present in Teradata
1. Primary Index.
a.Unique primary index.
b. non Unique primary index.
2. Secondary Index.
a. Unique Secondary index.
b. non Unique Secondary index.
3. Partitioned Primary Index.
a. Case partition (ex. age, salary…).
b. range partition ( ex. date).
4. Join index.
a. Single table join index.
b. multiple table join index.
c. Sparse Join index ( constraint applied on join index in where clause).
5. Hash index.
- 79. How Many Types Of Index Are Present In Teradata?
-
- 80. What Does Sleep Function Does In Fast Load?
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.
- 80. What Does Sleep Function Does In Fast Load?
-
- 81. What Are Types Of Partition Primary Index (ppi) In Teradata?
1. Partition by CASE
CREATE TABLE ORDER_Table
(
ORD_number integer NOT NULL,
customer_number integer NOT NULL,
Generated by Foxit PDF Creator © Foxit Software
http://www.foxitsoftware.com For evaluation only.
order_date date ,
order_total integer
)
PRIMARY INDEX (customer_number)
PARTITION BY case1 (
order_total < 10000 ,
order_total < 20000 ,
order_total < 30000,
NO CASE OR UNKNOWN ) ;
2. Partition by Range – example using date range
CREATE TABLE ORDER_Table
(
ORD_number integer NOT NULL,
customer_number integer NOT NULL,
order_date date ,
order_total integer
)
PRIMARY INDEX (customer_number)
PARTITION BY range1 (
Order_date BETWEEN date ‘2010-01-01’ AND date ‘2010-12-01’
EACH interval ‘1’ month ,
NO RANGE OR UNKNOWN);
- 81. What Are Types Of Partition Primary Index (ppi) In Teradata?
-
- 82. What Is A Sparse Index?
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.
- 82. What Is A Sparse Index?
-
- 83. Difference Between Stored Procedure And Macro?
Stored Procedure:
- It does not return rows to the user.
- It has to use cursors to fetch multiple rows
- It used inout/Out to send values to user
- It contains comprehensive SPL
- It is stored in DATABASE or USER PERM
- A stored procedure also provides output/Input capabilities
Macros:
- It returns set of rows to the user.
- It is stored in DBC PERM space
- A macro that allows only input values
- 83. Difference Between Stored Procedure And Macro?
-
- 84. What Is Difference B/w User And Database In Teradata?
– User is a database with password but database cannot have password.
– Both can contain Tables, views and macros.
– Both users and databases may or may not hold privileges.
– Only users can login, establish a session with Teradata database and they can submit requests.
- 84. What Is Difference B/w User And Database In Teradata?
-
- 85. What Are Differences Between Teradata And Ansi Session Modes In Teradata?
TERADATA MODE:
1. Comparison is not Case sensitive.
2. Create table are default to SET tables.
3. Each transaction is committed implicitly.
4. Supports all Teradata commands.
5. It follows BTET (Begin and End Transaction) Mode.ANSI MODE:
1. Comparison is CASE sensitive.
2. Create table are default to MULTISET tables.
3. Each transaction has to be committed explicitly.
4. Does not support all Teradata commands.
5. It does not follow BTET Mode.
- 85. What Are Differences Between Teradata And Ansi Session Modes In Teradata?
-
- 86. What Are The Scenarios In Which Full Table Scans Occurs?
1. The where clause in SELECT statement does not use either primary index or secondary index.
2. SQL Statement which uses a partial value (like or not like), in the WHERE statement.
3. SQL Statement which does not contain where clause.
4. SQL statement using range in where clause. Ex. (col1 > 40 or col1 < =10000).
- 86. What Are The Scenarios In Which Full Table Scans Occurs?
-
- 87. How To Identify Ppi Columns?
Select databasename , tablename , columnposition ,columnname from dbc.indices where indextype ='Q' order by 1 ,2,3 ;
- 87. How To Identify Ppi Columns?
-
- 88. Can You Load Multiple Data Files For Same Target Table Using Fastload?
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.
- 88. Can You Load Multiple Data Files For Same Target Table Using Fastload?
-
- 89. Why Does Varchar Occupy 2 Extra Bytes?
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.
.
- 89. Why Does Varchar Occupy 2 Extra Bytes?
-
- 90. What Do High Confidence, Low Confidence And No Confidence Mean In Explain Plan?
Explain gives the execution strategy means what are the different steps that the query will go through.
HIGH CONFIDENCE:
Statistics are collected.
LOW CONFIDENCE:
Statistics are not collected. But the where condition is having the condition on indexed column. Then estimations can be based on sampling.
NO CONFIDENCE:
Statistics are not collected and the condition is on non indexed column.
- 90. What Do High Confidence, Low Confidence And No Confidence Mean In Explain Plan?
-
- 91. How Can You Track Login Parameters Of Users In Teradata?
SELECT LOGDATE, LOGTIME, USERNAME, EVENT FROM DBC.LOGONOFF;
- 91. How Can You Track Login Parameters Of Users In Teradata?
-
- 92. What Are Tpump Utility Limitations?
Following are the limitations of Teradata TPUMP Utility:
- Use of SELECT statement is not allowed.
- Concatenation of Data Files is not supported.
- Exponential & Aggregate Operators are not allowed.
- Arithmatic functions are not supported.
- 92. What Are Tpump Utility Limitations?
-
- 93. What Are The Multiload Utility Limitations?
MultiLoad is a very powerful utility; it has following limitations:
- MultiLoad Utility doesn’t support SELECT statement.
- Concatenation of multiple input data files is not allowed.
- MultiLoad doesn’t support Arithmatic Functions i.e. ABS, LOG etc. in Mload Script.
- MultiLoad doesn’t support Exponentiation and Aggregator Operators i.e. AVG, SUM etc. in Mload Script.
- 93. What Are The Multiload Utility Limitations?
-
- 94. What Are The Functions Of A Teradata Dba?
Following are the different functions which a DBA can perform:
1. User Management –
Creation and managing Users, Databases, Roles, Profiles and Accounts.
2. Space Allocation –
Assigning Permanent Space, Spool Space and Temporary Space.
3. Access of Database Objects –
Granting and Revoking Access Rights on different database objects.
4. Security Control –
Handling logon and logoff rules for Users.
5. System Maintenance –
Specification of system defaults, restart etc.
6. System Performance –
Use of Performance Monitor(PMON), Priority Scheduler and Job Scheduling.
7. Resource Monitoring
– Database Query Log(DBQL) and Access Logging.
8. Data Archives, Restores and Recovery –
ARC Utility and Permanent Journals.
- 94. What Are The Functions Of A Teradata Dba?
-
- 95. What Are The 5 Phases In A Multiload Utility?
- Preliminary Phase – Basic Setup
- DML Phase – Get DML steps down on AMPs
- Acquisition Phase – Send the input data to the AMPs and sort it
- Application Phase – Apply the input data to the appropriate Target Tables
- End Phase – Basic Cleanup
- 95. What Are The 5 Phases In A Multiload Utility?
-
- 96. How To View Every Column And The Columns Contained In Indexes In Teradata?
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;
- 96. How To View Every Column And The Columns Contained In Indexes In Teradata?
-
- 97. How To Select First N Records In Teradata?
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;
- 97. How To Select First N Records In Teradata?
-
- 98. How To Eliminate Product Joins In A Teradata Sql Query?
1. Ensure statistics are collected on join columns and this is especially important if the columns you are joining on are not unique.
2. Make sure you are referencing the correct alias.
3. Also, if you have an alias, you must always reference it instead of a fully qualified tablename.
4. Sometimes product joins happen for a good reason. Joining a small table (100 rows) to a large table (1 million rows) a product join does make sense.
- 98. How To Eliminate Product Joins In A Teradata Sql Query?
-
- 99. How Does Hashing Happens In Teradata?
- Hashing is the mechanism through which data is distributed and retrieved to/from AMPs.
- Primary Index (PI) value of a row is the input to the Hashing Algorithm.
- Row Hash (32-bit number) value is the output from this Algorithm.
- Table Id + Row Hash is used to locate Cylinder and Data block.
- Same Primary Index value and data type will always produce same hash value.
- Rows with the same hash value will go to the same AMP. So data distribution depends directly on the Row Hash uniqueness; be careful while Choosing Indexes in Teradata.
- 99. How Does Hashing Happens In Teradata?
-
- 100. How Do You Transfer Large Amount Of Data In Teradata?
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.
- BTEQ (Basic Teradata Query) supports all 4 DMLs: SELECT, INSERT, UPDATE and DELETE. BTEQ also support IMPORT/EXPORT protocols.
- Fastload, MultiLoad and Tpump transfer the data from Host to Teradata.
- FastExport is used to export data from Teradata to the Host.
- 100. How Do You Transfer Large Amount Of Data In Teradata?
-
- 101. How Can You Find The Teradata Release And Version Information From Data Dictionary Table?
To find Release and Version information you can query this Data Dictionary table DBC.DBCINFO
SELECT * FROM DBC.DBCINFO;
- 101. How Can You Find The Teradata Release And Version Information From Data Dictionary Table?
-
- 102. Can You Recover The Password Of A User In Teradata?
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;
- 102. Can You Recover The Password Of A User In Teradata?
-
- 103. What Are The Types Of Tables In Teradata ?
1. set table.
2. multiset table.
3. derived table.
4. global temporary table(temporary table).
5. volatile table.
- 103. What Are The Types Of Tables In Teradata ?
-
- 104. In A Table Can We Use Primary Key In One Column And In Another Column Both Unique And Not Null Constrains.if Yes How?
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.
- 104. In A Table Can We Use Primary Key In One Column And In Another Column Both Unique And Not Null Constrains.if Yes How?
-
- 105. Can I Use “drop” Statement In The Utility “fload”?
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.
- 105. Can I Use “drop” Statement In The Utility “fload”?
-
- 106. Can We Load A Multi Set Table Using Mload?
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.
- 106. Can We Load A Multi Set Table Using Mload?
-
- 107. Teradata Performance Tuning And Optimization?
1. collecting statistics.
2. Explain Statements.
3. Avoid Product Joins when possible.
4. select appropriate primary index to avoid skewness in storage.
5. Avoid Redistribution when possible.
6. Use sub-selects instead of big “IN” lists.
7. Use derived tables.
8. Use GROUP BY instead of DISTINCT ( GROUP BY sorts the data locally on the VPROC. DISTINCT sorts the data after it is redistributed).
9. Use Compression on large tables.
- 107. Teradata Performance Tuning And Optimization?
-
- 108. What Is An Optimization And Performance Tuning And How Does It Really Work In Practical Projects?
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.
- 108. What Is An Optimization And Performance Tuning And How Does It Really Work In Practical Projects?
-
- 109. What Are The Enhanced Features In Teradata V2r5 And V2r6?
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.
- 109. What Are The Enhanced Features In Teradata V2r5 And V2r6?
-
- 110. What Is A Common Data Source For The Central Enterprise Data Warehouse?
ODS=>Operational Data Source.
- 110. What Is A Common Data Source For The Central Enterprise Data Warehouse?
-
- 111. What Are The Basic Rules That Define How Pi Is Defined In Teradata?
The following rules govern how Primary Indexes in a Teradata Database must be defined as well as how they function:
One Primary Index per table.
A Primary Index value can be unique or non-unique.
The Primary Index value can be NULL.
The Primary Index value can be modified.
The Primary Index of a populated table cannot be modified.
A Primary Index has a limit of 64 columns.
- 111. What Are The Basic Rules That Define How Pi Is Defined In Teradata?