31. Which of the following date function(s) are valid?
- NEXT_DATE
- NEXT_MONTH
- MONTHS_BETWEEN
- DAYS_BETWEEN
Answer: a, b, c, d.
32. Which of the following clauses are not allowed in a single row sub-query?
- From
- Where
- Group by
- Having
- Order by
Answer: e. Order by
33. How can data be accessed by users who do not have direct access to the tables?
a. By creating views
b. By creating triggers
c. By creating stored procedures
d. None of the above
Answer: a. By creating views
34. The primary key index does not allow ________ data in a field.
- Numeric
- Character
- Date
- Null
- Duplicate
- All of the above
Answer. d, e
35. What items, other than column names can be included in the select clause?
- Arithmetic Expressions
- Column aliases
- Concatenated columns
- None of the above
Answer: a. Arithmetic Expressions
36. Which of the following field names are correct?
- EmpNo
- 25Block
- #AccountID
- _CustomerName
- Product.Name
Answer: a, c, d.
37. The Employee table uses alphanumeric characters for there Employee ID field, which contains 7 digits prefixed with 3 characters. The alphanumeric characters refer to the department code. You want to generate a list of all the department codes displayed in capital letters. Which function(s) you will use for this query?
a. CONCAT()
b. SUBSTR()
c. UPPER()
d. LOWER()
e. REPLACE()
Answer: c. UPPER
38. Select all the appropriate options.
a. A table is a multi set of rows
b. A table is a two-dimensional array of rows and columns
c. A table is always dependent on other tables
d. A third normal form table is a table free of redundant data
e. A table must be have a primary key
Answer: a, b, d
39. Which statements are true for views?
- The definition of a view is stored in data dictionary
- Views provide a more secure way of retrieving data
- Views are actually Tables and store data in the same manner as Tables
- All of the above
Answer: a, b
40. Which techniques should be used to obtain a result which is based on comparing one row of a table with another row of the same table?
- Equi-join
- Inner join
- Outer join
- Self join
- Correlated subquery
- None of the above