module 7 part #3 Flashcards
The special operator used to check whether an attribute value matches a given string pattern is _____.
a. BETWEEN b. IS NULL
c. LIKE d. IN
c. LIKE
A(n) _____ is a query that is embedded (or nested) inside another query.
a. alias
b. operator
c. subquery
d. view
c. subquery
- Which of the following queries is used to list a unique value for V_CODE, where the list will produce only a list of those values that are different from one another?
a. SELECT ONLY V_CODE FROM PRODUCT;
b. SELECT UNIQUE V_CODE FROM PRODUCT;
c. SELECT DIFFERENT V_CODE FROM PRODUCT;
d. SELECT DISTINCT V_CODE FROM PRODUCT;
d. SELECT DISTINCT V_CODE FROM PRODUCT;
A(n) _____ is an alternate name given to a column or table in any SQL statement.
Alias
Data type
Stored function
Trigger
Alias
A(n) _____ query specifies which data should be retrieved and how it should be filtered, aggregated, and displayed.
a. INSERT
b. SELECT
c. COMMIT
d. UPDATE
b. SELECT
According to the rules of precedence, which of the following computations should be completed first?
a. Additions and subtractions
b. Multiplications and divisions
c. Operations within parentheses
d. Power operations
c. Operations within parentheses
An alias is especially useful when a table must be joined to itself in a(n) _____ query.
SELF JOIN