Teradata and SQL Database Fundamentals

Test your knowledge of Teradata database architecture, tools, and general SQL concepts including queries, functions, and data manipulation

20 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

Which of the following statements gets the total value of the column 'Price' in the 'Sales' table

  1. SELECT ADD(Price) FROM Sales
  2. SELECT TOTAL(Price) FROM Sales
  3. SELECT SUM(Price) FROM Sales
  4. SELECT SUM(Price) WHERE Sales
Question 2 Multiple Choice (Single Answer)

The difference between the DELETE and TRUNCATE SQL clauses is

  1. The TRUNCATE clause deletes all rows in a database table, while the DELETE clause can have a WHERE condition and might or might not delete all rows in a table
  2. The TRUNCATE clause is identical to the DELETE clause
  3. The DELETE clause deletes all rows in a database table, while the TRUNCATE clause can have a WHERE condition and might or might not delete all rows in a table
  4. None of these
Question 3 True/False

Values specified in the between condition are exclusive

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

select lpad(3400,10,*) from dual returns

  1. ******3400
  2. 3400******
  3. 3400
  4. Error
Question 5 Multiple Choice (Single Answer)

select trunc(760.5,-2) from dual returns

  1. Error
  2. 700
  3. 0
  4. 7
Question 6 Multiple Choice (Single Answer)

which one of the following is correct?

  1. to_char(sysdate,'mm/yy')
  2. to_char('sysdate','mm/yy')
  3. to_char(sysdate,mm/yy)
  4. All the above
Question 7 Multiple Choice (Single Answer)

select nvl2(exp1,exp2,exp3) from dual. In this if exp1 is null,what will be the output?

  1. exp1
  2. exp2
  3. exp3
  4. error
Question 8 Multiple Choice (Single Answer)

With SQL, how do you select all the records from a table named 'Persons' where the value of the column 'FirstName' starts with an 'a'?

  1. SELECT * FROM Persons WHERE FirstName LIKE 'a%'
  2. SELECT * FROM Persons WHERE FirstName LIKE '%a'
  3. SELECT * FROM Persons WHERE FirstName='a'
  4. SELECT * FROM Persons WHERE FirstName='%a%'
Question 9 True/False

Can a primary key contain more than one columns?

  1. True
  2. False
Question 10 True/False

Can 2 functions have same name & input parameters but differ only by return data type?

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

Which figure represents Terabyte

  1. 10^3
  2. 10^10
  3. 10^9
  4. 10^12
Question 12 Multiple Choice (Single Answer)

Teradata considered as fastest OLAP based RDBMS because of

  1. Parall architecture
  2. Serial architecture
  3. Scalability
  4. Performacnce
Question 13 Multiple Choice (Multiple Answers)

Which OS does not support teradata RDBMS installation

  1. UNIX-MPRAS
  2. UNIX-LINUX
  3. UNIX-AIX
  4. UNIX-HP-UX
Question 14 Multiple Choice (Single Answer)

Which is not a member of TTU(teradata tools and utilizes)?

  1. Fastload
  2. Multiload
  3. FastExport
  4. Datastage
Question 15 Multiple Choice (Single Answer)

What is the latest version of Teradata RDBMS available in market?

  1. V2R5
  2. V2R6
  3. V2R12
  4. V2R13
Question 16 Multiple Choice (Single Answer)

which table supports duplicate rows insertion?

  1. Set
  2. Multiset
  3. Volatile
  4. Temporary
Question 17 Multiple Choice (Single Answer)

which one is used to monitor performance of teradata processes?

  1. SQL assistant
  2. BTEQ
  3. PMON
  4. Statistics wizard
Question 18 Multiple Choice (Single Answer)

How many codd rules are applied in Teradata?

  1. 7
  2. 8
  3. 12
  4. 10
Question 19 Multiple Choice (Single Answer)

How many sessions can be handled in single session?

  1. 60
  2. 120
  3. 80
  4. 30
Question 20 Multiple Choice (Multiple Answers)

What type of distributions are there?

  1. SMP
  2. PMP
  3. MPP
  4. PPP