Deck 10: Selected Single Row Functions
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/133
Play
Full screen (f)
Deck 10: Selected Single Row Functions
1
The ADD_MONTHS function is used to add one month to a specified date.
False
2
The LENGTH function is used to determine the number of rows in a table.
False
3
A positive number is used in the ROUND function to indicate that numeric data should be rounded to the indicated position to the right of the decimal point.
True
4
The LTRIM function can be used to remove a specific number of characters from the left side of a set of data.
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
5
Case conversion functions can only be used in the SELECT clause of a SELECT statement.
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
6
Character functions can be used to change the case of characters or to manipulate characters.
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
7
The INSTR function is used to return a portion of a character string.
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
8
LOWER, UPPER, and INITCAP functions are all character manipulation functions.
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
9
Single-row functions return one row of results for each group or category of rows processed.
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
10
The INITIALCAP function can be used to convert character strings to mixed-case characters.
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
11
The REPLACE function is used to substitute one character string for another character string in a set of data.
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
12
A Julian date is the number of days that have passed between a specific date and January 1, 4712 B.C.
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
13
The TRUNC function can be used to add insignificant zeros to the right of a decimal point for numeric data.
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
14
To calculate the difference between two date columns, you must use the TO_DATE function.
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
15
The LPAD or RPAD function can be used to add a character to extend the current contents of a column to a specified width.
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
16
The LOWER function can be used to display upper-case characters in lower-case.
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
17
The NEXT_DAY function is used to determine the next occurrence of a specific day of the week that will occur after the specified date.
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
18
The MONTHS_BETWEEN function can be used to determine the number of months between two dates.
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
19
When a function is used in a SELECT statement, it only affects how the data are displayed in the results.
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
20
The CONCAT function is used to store the contents of two columns into one column.
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
21
The function is used to substitute one character string for another in a set of data. _________________________
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
22
A single-row function can be used with the DUAL table.
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
23
Only a DATE function can be nested inside another DATE function.
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
24
Use MON in the format argument to spell out the specified month.
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
25
functions return one row of results for each group or category of rows processed. _________________________
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
26
The function can be used to display upper-case characters in lower-case. _________________________
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
27
The DECODE function allows the user to specify different actions to be taken, depending on the value being used for the comparison.
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
28
You can determine the number of characters in a column by using the function. _________________________
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
29
The TO_CHAR function can be used to add a dollar sign ($) to a numeric value.
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
30
You must include the MI element in the format argument of a TO_CHAR function to include the minutes when displaying time.
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
31
The table called DUMMY consists of a blank holding area that can be referenced by a user.
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
32
The function can be used to concatenate the data contained in two columns. _________________________
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
33
can be used to convert character strings to mixed-case characters. _________________________
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
34
The NVL function can be used to include records containing null values in calculations.
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
35
LOWER, UPPER, and INITCAP functions are all functions. _________________________
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
36
The function can be used to remove a specific set of characters from the right side of a set of data values. _________________________
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
37
When functions are nested, the outer function is solved or executed first.
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
38
To indicate that the numeric value of the day of the year for a date is being specified, include DAY in format argument of the TO_DATE function.
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
39
The function is used to return a portion of a character string. _________________________
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
40
To add a series of asterisks (*) to a column with the intent of extending it to a specific length, you can use the function. _________________________
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
41
The function is used to determine the phonetic representation of a character string. _________________________
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
42
Which of the following functions can be used to convert a character string to upper-case letters?
A) UPPER
B) UP
C) UPPERCASE
D) UPPERCAP
A) UPPER
B) UP
C) UPPERCASE
D) UPPERCAP
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
43
Including in the format argument of the TO_DATE function indicates that the month is spelled out in the specified date. _________________________
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
44
The element can be included in a format argument of the TO_CHAR function to spell out the year of the specified date. _________________________
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
45
The function allows different options to be selected, based upon whether a NULL value exists. _________________________
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
46
The function can be used to truncate numeric data. _________________________
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
47
Include in a format argument of the TO_CHAR function to spell out the day of the week in the specified date. _________________________
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
48
Which of the following is an accurate statement?
A) When the LOWER function is used in a SELECT clause, it will automatically store the data in lower-case letters in the database table.
B) When the LOWER function is used in a SELECT clause, the function stays in effect for the remainder of that user's session.
C) When the LOWER function is used in a SELECT clause, the function only stays in effect for the duration of that SQL statement.
D) none of the above
A) When the LOWER function is used in a SELECT clause, it will automatically store the data in lower-case letters in the database table.
B) When the LOWER function is used in a SELECT clause, the function stays in effect for the remainder of that user's session.
C) When the LOWER function is used in a SELECT clause, the function only stays in effect for the duration of that SQL statement.
D) none of the above
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
49
A Julian date represents the number of that have passed since January 1, 4712 B.C. _________________________
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
50
When functions are nested, the function is solved first. _________________________
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
51
can be used to include the computer's date in a SQL statement. _________________________
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
52
The function can be used to round numeric data to the left or right of the decimal point. _________________________
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
53
The function is used to determine the next occurrence of a specific day of the week after a given date. _________________________
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
54
Any of the single-row functions covered in this chapter can be used with the table. _________________________
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
55
Which of the following returns one row of results for each record processed?
A) single-row function
B) multiple-row function
C) aggregate function
D) all of the above
A) single-row function
B) multiple-row function
C) aggregate function
D) all of the above
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
56
Which of the following functions can be used to convert a character string to lower-case letters?
A) LOW
B) LOWER
C) SMALLER
D) SMALLCAP
A) LOW
B) LOWER
C) SMALLER
D) SMALLCAP
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
57
The function is often combined with the NVL2 function to display a descriptive status. _________________________
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
58
The function can be used to display insignificant zeros. _________________________
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
59
The format argument in the TO_CHAR function must be enclosed in quotation marks. _________________________
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
60
Which of the following refers to a predefined block of code?
A) parameters
B) arguments
C) functions
D) syntax
A) parameters
B) arguments
C) functions
D) syntax
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
61
Which of the following functions can be used to change the format of a date that has been entered by a user to the default storage format use by Oracle11g?
A) TO_CHAR
B) TO_DATE
C) DEFAULT
D) DATE
A) TO_CHAR
B) TO_DATE
C) DEFAULT
D) DATE
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
62
Which of the following represents the number of days that have passed since January 1, 4712 B.C.?
A) Cartesian date
B) Julian date
C) Extended date
D) none of the above
A) Cartesian date
B) Julian date
C) Extended date
D) none of the above
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
63
Which of the following format argument elements indicates that the name of the day of the week for the specified date should be displayed?
A) DDD
B) DD
C) D
D) DAY
A) DDD
B) DD
C) D
D) DAY
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
64
Which of the following functions can be used to determine the next occurrence of a specific day of the week after a given date?
A) NEXT_DATE
B) DATE_NEXT
C) NEXT_DAY
D) NEXT_DDD
A) NEXT_DATE
B) DATE_NEXT
C) NEXT_DAY
D) NEXT_DDD
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
65
Which of the following functions is similar to using the (| |) symbol to combine the contents of two character strings?
A) CONCAT
B) CONCATENATION
C) CAT
D) CONCATEN
A) CONCAT
B) CONCATENATION
C) CAT
D) CONCATEN
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
66
Which of the following format elements will display the value of Friday in a specified date as a 6?
A) D
B) DD
C) DDD
D) DAY
A) D
B) DD
C) DDD
D) DAY
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
67
Which of the following functions will round the numeric data to no decimal places?
A) ROUND(34.21, 1)
B) ROUND(34.21, -1)
C) ROUND(34.21, NONE)
D) ROUND(34.21, 0)
A) ROUND(34.21, 1)
B) ROUND(34.21, -1)
C) ROUND(34.21, NONE)
D) ROUND(34.21, 0)
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
68
Which of the following functions can be used to remove a specific set of characters from the left side of a set of data values?
A) LTRIM
B) RTRIM
C) FULLTRIM
D) both a and b
A) LTRIM
B) RTRIM
C) FULLTRIM
D) both a and b
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
69
Which of the following can be used to replace a specific set of characters with another set of characters?
A) SUBSTR
B) REPLACE
C) FNDRPLCE
D) none of the above
A) SUBSTR
B) REPLACE
C) FNDRPLCE
D) none of the above
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
70
Which of the following statements will produce the value 21.1?
A) SELECT ROUND(21.12, 1) FROM dual;
B) SELECT ROUND(21.12, -1) FROM dual;
C) SELECT ROUND(21.12, 0) FROM dual;
D) none of the above
A) SELECT ROUND(21.12, 1) FROM dual;
B) SELECT ROUND(21.12, -1) FROM dual;
C) SELECT ROUND(21.12, 0) FROM dual;
D) none of the above
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
71
Which of the following functions is used to determine the number of months between two date values?
A) MONTH_BETWEEN
B) MONTHS_BETWEEN
C) MTH_BETWEEN
D) MNTH_BETWEEN
A) MONTH_BETWEEN
B) MONTHS_BETWEEN
C) MTH_BETWEEN
D) MNTH_BETWEEN
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
72
Which of the following functions can be used to fill a character string to a specific width?
A) LPAD
B) RPAD
C) LFILL
D) both a and b
A) LPAD
B) RPAD
C) LFILL
D) both a and b
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
73
Which of the following format elements can be used to display the three-letter abbreviation for Wednesday?
A) DDD
B) DD
C) DAY
D) DY
A) DDD
B) DD
C) DAY
D) DY
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
74
Which of the following functions will truncate a numeric value to a specific position?
A) TRUNCATE
B) TRUNC
C) TRUND
D) none of the above
A) TRUNCATE
B) TRUNC
C) TRUND
D) none of the above
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
75
Which of the following functions determines the number of characters in a character string?
A) COUNT
B) NUMBER
C) LENGTH
D) none of the above
A) COUNT
B) NUMBER
C) LENGTH
D) none of the above
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
76
Which of the following functions can be used to determine the date one month after a specified date?
A) ADD_MONTH
B) ADD_MONTHS
C) ONE_MONTH
D) NEXT_MONTH
A) ADD_MONTH
B) ADD_MONTHS
C) ONE_MONTH
D) NEXT_MONTH
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
77
What is the maximum number of columns or character strings that can be combined through a single CONCAT function?
A) two
B) three
C) four
D) eight
A) two
B) three
C) four
D) eight
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
78
Which of the following is used to return a portion of a character string?
A) SUBSTR
B) SUBSTRING
C) PARTSTR
D) PORTION
A) SUBSTR
B) SUBSTRING
C) PARTSTR
D) PORTION
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
79
Which of the following functions will convert the first letter of each word to an upper-case letter and the remaining letters of the word to lower-case letters?
A) INITIALCAPITAL
B) INITIALCAP
C) UPPERFIRST
D) none of the above
A) INITIALCAPITAL
B) INITIALCAP
C) UPPERFIRST
D) none of the above
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
80
Which of the following functions can be used to substitute another value for a NULL value during calculations?
A) NVL
B) NULLVAL
C) NULVAL
D) NLV
A) NVL
B) NULLVAL
C) NULVAL
D) NLV
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck