SQL (Introduction to Structured Query
Language) QUESTIONS AND ACCURATE
SOLUTIONS RATED A.
The special operator used to check whether a subquery returns any rows is
_____.
a. BETWEEN b. EXISTS
c. LIKE d. IN
ANSWER: b
Which is a feature of a correlated subquery?
a. The inner subquery executes first.
b. The outer subquery initiates the process of execution in a subquery.
c. The inner subquery initiates the process of execution in a subquery.
d. The outer subquery executes independent of the inner subquery.
ANSWER: b
The _____ function returns the current system date in MS Access.
a. TO_DATE() b. SYSDATE()
c. DATE() d. TODAY()
ANSWER: c
When using the Oracle TO_DATE function, the code _____ represents a three-
letter month name.
a. MON b. MM3
c. MONTH d. MM
ANSWER: a
_____ is a string function that returns the number of characters in a string
value.
, a. LENGTH b. SUBSTRING
c. CONCAT d. UCASE
ANSWER: a
The Oracle _____ function compares an attribute or expression with a series
of values and returns an associated value or a default value if no match is
found.
a. NVL b. TO_CHAR
c. DECODE d. CONVERT
ANSWER: c
In Oracle, the _____ function converts a date to a character string.
a. CONVERT() b. TO_DATE
c. TO_CHAR() d. TO_STRING()
ANSWER: c
_____ is a relational set operator.
a. EXCEPT b. PLUS
c. ALL d. EXISTS
ANSWER: a
The basic SQL vocabulary has fewer than _____words.
ANSWER: 100
one hundred
a hundred
The _____ specification is used to avoid having duplicated values in a
column.
ANSWER: UNIQUE
In the SQL environment, the word _____ covers both questions and actions.
ANSWER: query
Language) QUESTIONS AND ACCURATE
SOLUTIONS RATED A.
The special operator used to check whether a subquery returns any rows is
_____.
a. BETWEEN b. EXISTS
c. LIKE d. IN
ANSWER: b
Which is a feature of a correlated subquery?
a. The inner subquery executes first.
b. The outer subquery initiates the process of execution in a subquery.
c. The inner subquery initiates the process of execution in a subquery.
d. The outer subquery executes independent of the inner subquery.
ANSWER: b
The _____ function returns the current system date in MS Access.
a. TO_DATE() b. SYSDATE()
c. DATE() d. TODAY()
ANSWER: c
When using the Oracle TO_DATE function, the code _____ represents a three-
letter month name.
a. MON b. MM3
c. MONTH d. MM
ANSWER: a
_____ is a string function that returns the number of characters in a string
value.
, a. LENGTH b. SUBSTRING
c. CONCAT d. UCASE
ANSWER: a
The Oracle _____ function compares an attribute or expression with a series
of values and returns an associated value or a default value if no match is
found.
a. NVL b. TO_CHAR
c. DECODE d. CONVERT
ANSWER: c
In Oracle, the _____ function converts a date to a character string.
a. CONVERT() b. TO_DATE
c. TO_CHAR() d. TO_STRING()
ANSWER: c
_____ is a relational set operator.
a. EXCEPT b. PLUS
c. ALL d. EXISTS
ANSWER: a
The basic SQL vocabulary has fewer than _____words.
ANSWER: 100
one hundred
a hundred
The _____ specification is used to avoid having duplicated values in a
column.
ANSWER: UNIQUE
In the SQL environment, the word _____ covers both questions and actions.
ANSWER: query