SQL, DB2, and SSIS Quiz
Test your knowledge of SQL queries, DB2 database operations, and SSIS data integration tasks
Questions
Which SQL statement selects all rows from a table called Products and orders the result set by ProductID column?
- SELECT * FROM Products ORDER BY ProductID
- SELECT * FROM Products WHERE ProductID > 200
- SELECT * FROM Products ORDERED BY ProductID
- SELECT ProductID FROM Products
What does the following SQL statement do: SELECT Customer, COUNT(Order) FROM Sales GROUP BY Customer HAVING COUNT(Order) >5
- Selects all Customers from the Sales table
- Selects all customers from table Sales that have made more than 5 orders.
- Selects the total number of orders from the Sales table, if this number is greater than 5
- Selects no records
What is a foreign key?
- The foreign key is a column that can have NULL values.
- The foreign key is a SQL locking mechanism.
- 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.
- The foreign key is a column that should be primary key for that table.
Which SQL statement inserts data into a table called Projects?
- INSERT Projects VALUES ('Content Development', 'Website content development project')
- INSERT Projects ('Content Development', 'Website content development project')
- INSERT INTO Projects (ProjectName, ProjectDescription) VALUES ('Content Development', 'Website content development project')
- SAVE INTO Projects (ProjectName, ProjectDescription) VALUES ('Content Development', 'Website content development project')
Which of the following SQL statements is correct?
- SELECT FROM Sales WHERE Date BETWEEN ('10/12/2005', '01/01/2006')
- SELECT * FROM Sales WHERE Date BETWEEN '10/12/2005' AND '01/01/2006'
- SELECT FROM Sales WHERE Date BETWEEN '10/12/2005' AND '01/01/2006'
- SELECT * FROM Sales WHERE Date BETWEEN ('10/12/2005', '01/01/2006')
If you join a table to itself, what kind of join are you using?
- Self Join
- Selective Join.
- Outer Join
- You can't join a table to itself.
Which of the following is a reserved SQL keyword?
- GROWN
- FROM
- UPDATING
- DELETING
How would you find out the total number of rows in a DB2 table?
- Use SELECT COUNT(*)...in db2 query
- Use SELECT DISTINCT...in db2 query
- Use SELECT MAX(...)...in db2 query
- Use SELECT ROWNUM(*)...in db2 query
What is the physical storage length of DB2 data types-DATE,TIME,TIMESTAMP?
- 8 bytes, 6 bytes, 26 bytes
- 4 bytes, 3 bytes, 13 bytes
- 4 bytes, 3 bytes, 10 bytes
- 10 bytes, 8 bytes, 26 bytes
How do you eliminate duplicate values in DB2 SELECT?
- Use SELECT UNION(*)...in db2 query
- Use SELECT DISTINCT...in db2 query
- Use SELECT UNION ALL(...)...in db2 query
- Use SELECT DISTINCT ALL(*)...in db2 query
DB2 is a relational database
- True
- False
One table can have more than one tablespace
- True
- False
SSIS uses connection managers to integrate different data sources into packages. IS Analysis Services Connection Manager is available?
- True
- False
To Connect to Oracle database from SSIS OLE DB Connection Manager is not used.
- True
- False
Execute Process Task is Control Flow Item .
- True
- False
It is not Possible to Send Mail directly From SSIS Packages using
- True
- False
Script component is used in both Control Flow as well as Data Flow.
- True
- False
SSIS have the concept of Parent and Child Package.
- True
- False
OLEDB Command can be used to call Store Procedure from Database in data Flow Task.
- True
- False
For each loop is used to repeat a task by enumerating over a group of objects.
- True
- False