SQL, DB2, and SSIS Quiz

Test your knowledge of SQL queries, DB2 database operations, and SSIS data integration tasks

20 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

Which SQL statement selects all rows from a table called Products and orders the result set by ProductID column?

  1. SELECT * FROM Products ORDER BY ProductID
  2. SELECT * FROM Products WHERE ProductID > 200
  3. SELECT * FROM Products ORDERED BY ProductID
  4. SELECT ProductID FROM Products
Question 2 Multiple Choice (Single Answer)

What does the following SQL statement do: SELECT Customer, COUNT(Order) FROM Sales GROUP BY Customer HAVING COUNT(Order) >5

  1. Selects all Customers from the Sales table
  2. Selects all customers from table Sales that have made more than 5 orders.
  3. Selects the total number of orders from the Sales table, if this number is greater than 5
  4. Selects no records
Question 3 Multiple Choice (Single Answer)

What is a foreign key?

  1. The foreign key is a column that can have NULL values.
  2. The foreign key is a SQL locking mechanism.
  3. A foreign key is a key field (column) in a database table, which relates the table to another table where the key is a primary key. The primary - foreign key relations are used to cross-reference database tables.
  4. The foreign key is a column that should be primary key for that table.
Question 4 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. INSERT Projects ('Content Development', 'Website content development project')
  3. INSERT INTO Projects (ProjectName, ProjectDescription) VALUES ('Content Development', 'Website content development project')
  4. SAVE INTO Projects (ProjectName, ProjectDescription) VALUES ('Content Development', 'Website content development project')
Question 5 Multiple Choice (Single Answer)

Which of the following SQL statements is correct?

  1. SELECT FROM Sales WHERE Date BETWEEN ('10/12/2005', '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' AND '01/01/2006'
  4. SELECT * FROM Sales WHERE Date BETWEEN ('10/12/2005', '01/01/2006')
Question 6 Multiple Choice (Single Answer)

If you join a table to itself, what kind of join are you using?

  1. Self Join
  2. Selective Join.
  3. Outer Join
  4. You can't join a table to itself.
Question 7 Multiple Choice (Single Answer)

Which of the following is a reserved SQL keyword?

  1. GROWN
  2. FROM
  3. UPDATING
  4. DELETING
Question 8 Multiple Choice (Single Answer)

How would you find out the total number of rows in a DB2 table?

  1. Use SELECT COUNT(*)...in db2 query
  2. Use SELECT DISTINCT...in db2 query
  3. Use SELECT MAX(...)...in db2 query
  4. Use SELECT ROWNUM(*)...in db2 query
Question 9 Multiple Choice (Single Answer)

What is the physical storage length of DB2 data types-DATE,TIME,TIMESTAMP?

  1. 8 bytes, 6 bytes, 26 bytes
  2. 4 bytes, 3 bytes, 13 bytes
  3. 4 bytes, 3 bytes, 10 bytes
  4. 10 bytes, 8 bytes, 26 bytes
Question 10 Multiple Choice (Single Answer)

How do you eliminate duplicate values in DB2 SELECT?

  1. Use SELECT UNION(*)...in db2 query
  2. Use SELECT DISTINCT...in db2 query
  3. Use SELECT UNION ALL(...)...in db2 query
  4. Use SELECT DISTINCT ALL(*)...in db2 query
Question 11 True/False

DB2 is a relational database

  1. True
  2. False
Question 12 True/False

One table can have more than one tablespace

  1. True
  2. False
Question 13 True/False

SSIS uses connection managers to integrate different data sources into packages. IS Analysis Services Connection Manager is available?

  1. True
  2. False
Question 14 True/False

To Connect to Oracle database from SSIS OLE DB Connection Manager is not used.

  1. True
  2. False
Question 15 True/False

Execute Process Task is Control Flow Item .

  1. True
  2. False
Question 16 True/False

It is not Possible to Send Mail directly From SSIS Packages using

  1. True
  2. False
Question 17 True/False

Script component is used in both Control Flow as well as Data Flow.

  1. True
  2. False
Question 18 True/False

SSIS have the concept of Parent and Child Package.

  1. True
  2. False
Question 19 True/False

OLEDB Command can be used to call Store Procedure from Database in data Flow Task.

  1. True
  2. False
Question 20 True/False

For each loop is used to repeat a task by enumerating over a group of objects.

  1. True
  2. False