TeraData TE0-122 Exam (page: 4)
TeraData 12 SQL exam
Updated on: 25-Dec-2025

Viewing Page 4 of 31

Given the following:

Job Description Name Salary Amount
Programmer Smithson, John 55, 000
Salesman Germain, Frank 75, 000
Carpenter Johnson, Mark 40, 000

After switching over to ANSI mode, an error was generated with the following statement:
SELECT CAST(Name AS CHAR(5))
What caused the error?

  1. In Release 12 ofTeradata, ANSI mode has been eliminated.
  2. In ANSI mode, the CAST function can only be completed in the WHERE clause.
  3. In ANSI mode, the CAST function does not permit truncation ofnonpad characters.
  4. In ANSI mode, the TRIM function should have been used to truncate character strings.

Answer(s): A



A company wants to award a 3% increase in salary to all employees who meet these two criteria:

* They have a valid department assignment.
* Their current salary is less than $50, 000.

Which two statements will accomplish this objective? (Choose two.)

  1. UPDATEemp FROM department AS dept, employee AS emp
    SET salary_amount = salary_amount * 1.03
    WHERE emp.department_number = dept.department_number
    AND salary_amount < 50000;
  2. UPDATE employee ASemp FROM department AS dept
    SET salary_amount = salary_amount * 1.03
    WHERE emp.department_number = dept.department_number
    AND salary_amount < 50000;
  3. UPDATE employee
    SET salary_amount = salary_amount * 1.03
    WHERE employee.department_number IN
    (SELECT department_number FROM department
    AND salary_amount < 50000);
  4. UPDATE employee
    SET salary_amount = salary_amount * 1.03
    WHERE employee.department_number IN
    (SELECT department_number FROM department)
    AND salary_amount < 50000;

Answer(s): B,D



Given the following CREATE TABLE statement:

CREATE SET TABLE SPA_APPT_AVAILABILITY
( SPA_ID INTEGER NOT NULL
, APPT_DATE DATE NOT NULL
, APPT_TIME CHAR(5) NOT NULL
, TREATMENT_ID INTEGER NOT NULL
, TREATMENT_NAME CHAR(50) NOT NULL
, AESTHETICIAN_ID INTEGER NOT NULL
, COMMENTS VARCHAR(100)
, PRIMARY KEY (SPA_ID, APPT_DATE))
;

Which column(s) will be defined as the primary index?

  1. SPA_ID
  2. TREATMENT_ID
  3. SPA_ID, APPT_DATE
  4. SPA_ID, TREATMENT_ID

Answer(s): D



The date '2009-04-10' is represented by StartDate and the date '2008-03-07' is represented by
EndDate.
Which calculation produces the number of days between the two dates?

  1. EndDate - StartDate
  2. DIFF(EndDate, StartDate)
  3. DAYS(StartDate, EndDate)
  4. EXTRACT(DAY FROMEndDate) - EXTRACT(DAY FROM StartDate)

Answer(s): B



A mobile provider wants to increase the price on a specific feature included in several of their service offers. The feature name contains the string "walkabout".
Which query modifies the correct rows from the Phone_Packages table?

  1. UPDATEPhone_Packages
    SET price = price * 1.25
    WHERE Features.feature_name LIKE '%walkabout%';
  2. UPDATEPhone_Packages
    SET price = price * 1.25
    WHERE feature_code IN (SELECT feature_code
    FROM Features
    WHERE feature_name LIKE '%walkabout%');
  3. UPDATEPhone_Packages FROM Features
    SET price = price * 1.25
    WHERE Features.feature_name LIKE '%walkabout%';
  4. UPDATEPhone_Packages FROM Features
    SET price = price * 1.25
    WHERE feature_code IN (SELECT feature_code
    FROM Features
    WHERE feature_name LIKE '%walkabout%');

Answer(s): D



Viewing Page 4 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