TeraData TE0-122 Exam (page: 1)
TeraData 12 SQL exam
Updated on: 11-Aug-2025

Viewing Page 1 of 31

A company wants a sequential ranking of all employee salaries. They do not want employees with the same salary to be given the same rank number.
Which ordered analytical function should be used?

  1. RANK
  2. QUANTILE
  3. ROW_NUMBER
  4. PERCENT_RANK

Answer(s): B



Which two will happen during a transaction when no rows are available in a queue table? (Choose two.)

  1. The transaction aborts automatically.
  2. The SELECT AND CONSUME statement will generate new rows in the table.
  3. The transaction enters a delay state until a row is inserted into the queue table.
  4. The transaction aborts either by an ABORT statement, or a DROP TABLE statement on the queue table.

Answer(s): A,B



Which DCL statement is written correctly?

  1. GRANT SELECT, EXECUTE, DELETE TO User1 ON User1;
  2. GRANT SELECT, EXECUTE, DELETE ON Database1 TO Database1;
  3. GRANT SELECT, EXECUTE, DELETE TO User1 ON DATABASE Database1;
  4. GRANT SELECT, EXECUTE, DELETE ON DATABASE Database1 TO User1;

Answer(s): D



Given the following: (? = NULL)

Column1 Column2
JA LZ
JA ?
MX TX
MX LZ
? ?
SELECT CASE WHEN column_1 = 'JA' AND column_2 = 'LZ' THEN 'OK'
WHEN column_1 = 'JA' AND column_2 IS NULL THEN '??'
WHEN column_1 IS NOT NULL AND column_2 = 'LZ' THEN '??'
WHEN column_1 = 'DD' THEN '??'
ELSE 'OK'
END
FROM table_1;

How many rows will the SELECT statement return with the value 'OK'?

  1. 1
  2. 2
  3. 3
  4. 4
  5. 5

Answer(s): B



The columns in a Customer table are defined as:

acctid INTEGER NOT NULL
acctnm VARCHAR(50)
and the columns in a Trans table are defined as:
acctid INTEGER NOT NULL
amount DECIMAL(8, 2) NOT NULL

The values (where ? indicates NULL) for these columns are the following:
Customer table Trans table
acctid acctnm__ acctid amount
227638 Martin 220532 55.38
220794 Miko 227638 21.73
228326 Nelly 220794 34.14
224753 ? 228326 42.88
216893 Jackie 223961 20.74
220794 15.47
227638 25.64
228326 47.21

The values in the amount column need to be presented in a report so that the column values look like the following:

amount
47.21
42.88
34.14
25.64
21.73
15.47
?
?

Which query provides the desired result?

  1. SELECT amount
    FROM Customer a LEFT JOIN Trans b
    ON a.acctid = b.acctid
    ORDER BY 1 DESC;
  2. SELECT amount
    FROM Customer a LEFT JOIN Trans b
    WHERE a.acctid = b.acctid
    ORDER BY 1 DESC;
  3. SELECT amount
    FROM Customer a RIGHT OUTER JOIN Trans b
    WHERE a.acctid = b.acctid
    ORDER BY 1 DESC;
  4. SELECT amount
    FROM Customer a
    Trans b
    ON a.acctid = b.acctid
    ORDER BY 1 DESC;

Answer(s): B



Viewing Page 1 of 31



Share your comments for TeraData TE0-122 exam with other users:

Anonymous 9/12/2023 12:50:00 PM

can we get tdvan4 vantage data engineering pdf?
UNITED STATES


Anonymous 9/14/2023 4:27:00 AM

question number 4s answer is 3, option c. i
UNITED STATES