Teradata Interview Questions
Teradata Interview Questions
You can integrate Teradata with various business intelligence (BI) tools.
Linear Scalability,
Connectivity,
Fastload,
Multi-load,
Fastexport, and
Output:
Codi
Output:
2
TRIM: It removes all the blank space from a string. For example,
Output:
CodingNinjas
SELECT UPPER("CodingNinjas");
Output:
CODINGNINJAS
SELECT LOWER("CODINGNINJAS")
Output:
codingninjas
If a Teradata MultiLoad job is stopped or the client system fails during the
application stage, you must resolve the issue that led to the failure and
then restart the job.
13. Can you name a few ETL (Exact, Transform, and Load) tools under
Teradata?
There are many ETL (Extract, Transform, and Load) tools that are frequently used
in Teradata as follows:
Informatica,
DataStage, and
15. Can you tell me some benefits of using ETL tools over Teradata?
ETL stands for three separate database management tasks: extract, transform,
and load. Compared to Teradata, ETL tools have a few advantages, such as:
It supports multiple heterogeneous sources and destinations of data.
The ETL tools offer a complete GUI that makes controlling databases'
debugging procedures easier.
ETL tools also allow you to reuse components. As a result, if the central
server is updated, all associated applications that use that server are also
updated automatically.
ETL tools can pivot and de-pivot (turn rows into columns) (transform
columns into rows).
Derived Table: Derived tables have the shortest lifetime of all the tables.
These tables are where queries' intermediate results are kept after
execution. During a query, tables are built, utilized, and then deleted.
FLOAD - Sh> FASTLOAD< [ Script path]/TEE< LOGFILE PATH > (OR) FLOAD -
$Sh> FASTLOAD < [ Script path > [LOG FILE PATH]
MLOAD - $Sh> Mload < [ Script path]/TEE< LOGFILE PATH > (OR) MLOAD - $Sh>
Mload < [ Script path > [LOG FILE PATH]
TPUMP - $Sh> TPUMP < [ Script path]/TEE< LOGFILE PATH > (OR) TPUMP - $Sh>
TPUMP < [ Script path > [LOG FILE PATH]
FEXP - $Sh> FEXP < [ Script path]/TEE< LOGFILE PATH > (OR) FEXP - $Sh> FEXP
< [ Script path > [LOG FILE PATH]
22. Can you explain the difference between Teradata and Oracle?
23. What will you do if the Fast Script is not running reliably?
If the Fast Load Script is not working reliably and you only have the error tables,
then there are two ways to restart:
Rerunning the old file: You must be sure not to remove the error tables
altogether. Instead, you can fix the errors in the file or script and then
execute the file again.
Running a new file: You can also restart using the ending loading and
beginning statements. Due to this, you can remove the lock that was
present on the target table. You can also remove the record from the fast-
log table. If this all works fine, you can rerun the whole script. You can also
drop the table and try recreating it.
In Teradata, the DBC.DBCINFO table has the information relevant to the Teradata
release and version. Here,
DBC stands for Database computer.
RUN FILE: This command helps to execute the Query that is present in a
file.
IMPORT: It specifies the path to the input file and starts the import to the
input file.
LOGOFF: It terminates all sessions and logs you off from the database.
EXPORT: It specifies a path to the output file and starts exporting to the
output file.
PPI eliminates the need for secondary indexes and extra I/O maintenance.
PPI makes it simple to update data in a table and add new data.
27. How can you find the duplicate records present in a table?
We can use the "DISTINCT" or the "GROUP BY" statement to identify the
duplicate records in a table. We can either do this:
SELECT DISTINCT column 1, column 2... FROM tablename;
Or this:
SELECT column 1, column 2,... FROM tablename GROUP BY column 1, column
2....;