Working With DB2 UDB Data: Sample Questions: SELECT FROM Table1, Table2
Working With DB2 UDB Data: Sample Questions: SELECT FROM Table1, Table2
1 Family Fundamentals
1) To store the price of items with a maximum price of 99999.99, which data type do
you use?
a. numeric(5,2)
b. double
c. decimal(7,2)
d. money
2) Which two of the following data types can be used to store double byte data?
a. graphic
b. varchar
c. BLOB
d. DBCLOB
Table1 Table2
1 3
2 4
5
a. 0
b. 3
c. 5
d. 6
4) Using Table1 from question 3, which SELECT statement will return a result set
with no duplicates?
a. SELECT DISTINCT * FROM Table1
b. SELECT UNIQUE * FROM Table1
c. SELECT DISTINCT (*) FROM Table1
d. SELECT UNIQUE (*) FROM Table1
6) Which operator is used to retrieve the set of values which exist in the first table,
but not the second in a query?
a. Left Outer Join
b. Except
c. Only
d. Where
9) Which of the following cannot occur with the ALTER TABLE statement?
a. Change the name of a column
b. Drop an index
c. Drop a foreign key
d. Add a column
Answers:
1. c
2. a, d
3. d
4. a
5. c
6. b
7. c
8. d
9. a
10. d