Examine this statement: On which two columns of the table will an index be created automatically?
Correct Answer: A,B
Question 22
Which three statements are true about single-row functions?
Correct Answer: A,B,E
Single-row functions in SQL return one result per row, and the following statements are true: * A: The data type of the returned value can indeed be different from the data type of the argument provided to the function. For example, the TO_CHAR function can take a numeric input and return a character string. * B: Single-row functions can be nested within each other to any level that is supported by Oracle. This means you can have a function call as an argument to another function, and so on. * E: The argument to a single-row function can be a column name, a variable, a literal, or an expression. This flexibility allows these functions to be very powerful in SQL expressions. The incorrect options are: * C: Single-row functions do not return a single result row per table; they return a result for each row that is processed. * D: They are not limited to accepting only one argument. Some functions, like NVL, accept multiple arguments. * F: They are not limited to use in the WHERE clause; single-row functions can be used in any part of a * SQL statement, including SELECT and ORDER BY clauses. References: * Oracle Documentation on Single-Row Functions: SQL Functions
Question 23
Examine this query: SELECT SUBSTR (SYSDATE, 1, 5) ''Result '' FROM DUAL; Which statement Is true?
Correct Answer: B
Question 24
Which two are true about dropping columns from a table?
You must create a table EMPLOYEES in which the values in the columns EMPLOYEES_ID and LOGIN_ID must be unique and not null. Which two SQL statements would create the required table? (Choose two.)