SQL and Teradata Utilities Quiz

Covers Teradata Fastload/Multiload utilities and fundamental SQL concepts including subqueries, DML, and SELECT statements

20 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

What are SQL “SELECT” statement capabilities.

  1. Projection
  2. Selection
  3. Join
  4. All of the above
Question 2 Multiple Choice (Single Answer)

To select all the columns from a table EMP, which one of the following is TRUE?

  1. Select all columns from EMP;
  2. Select distinct columns from EMP;
  3. Select * from EMP;
  4. All of the above
Question 3 True/False

Select ename from emp where ename =”Scott”; This select statement executes successfully.

  1. True
  2. False
Question 4 True/False

A Literal is enclosed in double quotes.

  1. True
  2. False
Question 5 Multiple Choice (Single Answer)

SQL is

  1. Structured Query Language
  2. Standard Query Language
  3. System Query Language
  4. Simple Query Language
Question 6 Multiple Choice (Single Answer)

Duplicate values are eliminated by which keyword

  1. Duplicate
  2. Distinct
  3. Remove
  4. Delete
Question 7 Multiple Choice (Single Answer)

The two types of subqueries are:

  1. Single-row subquery, Double-row subquery
  2. Double-row subquery, Multiple-row subquery
  3. Multiple-row subquery
  4. Single-row subquery and Multiple subquery
Question 8 Multiple Choice (Single Answer)

Single-row subquery returns:

  1. Only one row
  2. Two rows
  3. Zero rows
  4. There is no such subquery
Question 9 Multiple Choice (Single Answer)

What is the result of the query below? SELECT Stud_name, Rollnum FROM STUDENT WHERE stud_marks=(SELECT MIN (stud_marks) FROM STUDENT GROUPBY Rollnum);

  1. It gives the name and marks of all the students.
  2. It does not return anything.
  3. It shows an error saying” INVALID SYNTAX ERROR”
  4. It shows an error saying” Single-row subquery returns more than one row
Question 10 Multiple Choice (Single Answer)

Which of the following is not a multiple-row operator?

  1. IN
  2. OF
  3. ALL
  4. ANY
Question 11 Multiple Choice (Single Answer)

Which operator compares a value to every value returned by a subquery?

  1. IN
  2. OF
  3. ALL
  4. ANY
Question 12 Multiple Choice (Single Answer)

A DML statement is executed when you

  1. Add new rows to a table
  2. Modify existing rows of a table
  3. Remove existing rows from a table
  4. All of the above
Question 13 Multiple Choice (Single Answer)

The right syntax insert a row into a table is

  1. Insert to table tablename (….);
  2. Insert into table tablename (….);
  3. Insert into table tablename values (…..);
  4. Any one of the above
Question 14 Multiple Choice (Single Answer)

Which is the function that records the current date?

  1. Date
  2. Sysdate
  3. Current Date
  4. System Date
Question 15 True/False

Fastload does not use Transient Journal

  1. True
  2. False
Question 16 Multiple Choice (Multiple Answers)

Please select the two phases of Fastload

  1. Acquisition
  2. Transaction
  3. Application
  4. Clean Up
Question 17 Multiple Choice (Single Answer)

DEFINE command in Fastload stands for

  1. Define the target table
  2. Define the Work table
  3. Define the input file
  4. Define the Error table
Question 18 True/False

It is possible to restart Fastload script when the target table is created in the script

  1. True
  2. False
Question 19 True/False

All Fastload commands should start with period(.) character

  1. True
  2. False
Question 20 Multiple Choice (Single Answer)

The support tables are created in which phase of Multiload

  1. Acquisition
  2. Transaction
  3. Application
  4. Preliminary