SQL and Teradata Database Utilities

Test your knowledge of SQL fundamentals including SELECT, INSERT, DELETE, ORDER BY, GROUP BY, sub-queries, views, and operators, plus Teradata-specific utilities like FastLoad and TPUMP for data warehousing operations.

20 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

Which SQL statement is used to extract data from a database?

  1. FETCH
  2. EXTRACT
  3. GET
  4. SELECT
Question 2 Multiple Choice (Single Answer)

Which SQL statement is used to delete data from a database table?

  1. DROP
  2. DELETE
  3. TRUNCATE
  4. REMOVE
Question 3 Multiple Choice (Single Answer)

What is a trigger

  1. A piece of logic written in PL/SQL
  2. Executed at the arrival of a SQL*FORMS event
  3. Both A & B
  4. None of the above
Question 4 Multiple Choice (Single Answer)

RENAME command is a :

  1. DCL command
  2. TCL command
  3. DDL command
  4. DML command
Question 5 Multiple Choice (Single Answer)

Data Dictionary:

  1. Is a collection of tables created and maintained by oracle server.
  2. Contain user information.
  3. Contain database information.
  4. Both a and c
  5. All
Question 6 Multiple Choice (Single Answer)

A DML statement is executed when you:

  1. Modify existing rows in a table.
  2. Add a new column in a table
  3. Both a & b
  4. None
Question 7 Multiple Choice (Single Answer)

Select the correct order of evaluation for following operators: I.LIKE II.NOT III.AND IV.OR

  1. I,III,IV,II
  2. I,II,III,IV
  3. IV,III,II,I
  4. IV,II,I,III
Question 8 Multiple Choice (Single Answer)

Which SQL keyword is used to sort the result set:

  1. ORDER
  2. SORT
  3. ORDER BY
  4. GROUP BY
Question 9 Multiple Choice (Single Answer)

What will be the correct order of the below mentioned clauses in a SQL if select part of the query contains on group function and there is one filter condition. I.Where II.GROUP BY III.HAVING IV.ORDER BY

  1. I,III,II,IV
  2. I,II,III,IV
  3. II,IV,III,I
  4. II,I,IV,III
Question 10 Multiple Choice (Single Answer)

You can not add data through a view if the view includes:

  1. FROM
  2. Columns defined by expression
  3. WHERE
  4. Both b & c
Question 11 True/False

Fast Load can load the duplicate record in a multiset table.

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

Which of the following property is true about FAST LOAD.

  1. No more than 1 data type conversion is allowed per column during the Fastload
  2. If an AMP is down FL cannot be restarted untill that AMP is back online
  3. only load 1 empty table with one fast load job
  4. Fast load assembles data in 64K blocks and then loads it using mutltiple sessions
  5. Fast load supports triggers.
Question 13 Multiple Choice (Single Answer)

Which of the following utility is designed to allow OLTP trasactions to immediately load in Datawarehouse?

  1. Fast Load
  2. Multi Load
  3. Tpump
  4. Fast Export
Question 14 Multiple Choice (Multiple Answers)

For Fast load script to be restartable which of the following should hold true?

  1. Target table should not be created in the script
  2. target table should be created in the script
  3. Error tables should not be dropped in the script
  4. Checkpoint should be declared in the script
  5. Target table should not be dropped in the script
Question 15 Multiple Choice (Multiple Answers)

select the properties of TPUMP

  1. It is possible to stipulate how many updates may occur per minute
  2. It is possible to have tpump running in the background all the time and just control its flow rate
  3. It can load upto 60 tables at a time if using a single source
  4. It can be stopped any time and all locks dropped or released with no ill consequences.
  5. it uses macro to run the SQL statements
  6. It has more error tollerance than FL and ML
Question 16 Multiple Choice (Single Answer)

Sub-queries can be nested in

  1. DELETE statements only
  2. UPDATE, DELETE, INSERT and SELECT statements
  3. UPDATE statements only
  4. INSERT statements only
Question 17 Multiple Choice (Single Answer)

Which SQL statement inserts data into a table called Projects?

  1. INSERT Projects VALUES ('Content Development', 'Website content development project')
  2. SAVE INTO Projects (ProjectName, ProjectDescription) VALUES ('Content Development', 'Website content development project')
  3. INSERT INTO Projects (ProjectName, ProjectDescription) VALUES ('Content Development', 'Website content development project')
  4. INSERT Projects ('Content Development', 'Website content development project')
Question 18 Multiple Choice (Single Answer)

If you don't specify ASC or DESC after a SQL ORDER BY clause, the following is used by default:

  1. ASC
  2. DESC
  3. No Default value
  4. Returns error
Question 19 Multiple Choice (Single Answer)

Which of the following SQL statements is correct?

  1. SELECT FROM Sales WHERE Date BETWEEN '10/12/2005' AND '01/01/2006'
  2. SELECT * FROM Sales WHERE Date BETWEEN '10/12/2005' AND '01/01/2006'
  3. SELECT FROM Sales WHERE Date BETWEEN ('10/12/2005', '01/01/2006')
  4. All the above
Question 20 Multiple Choice (Single Answer)

Which of the following SQL clauses is used to sort a result set

  1. Order By
  2. Sort
  3. Arrange
  4. All the above