Exam Review Flashcards
makes it easier to query fields where data isn’t always sorted in a standard format
case-manipulation functions
3 purposes of column aliases (other than display)
- enhances formatting
- calculated columns
- concatenated columns
does CONCAT allow character strings?
no
____ refer to pattern matching in a search string
wildcards
general function: displays replacement values as specified
DECODE
date function: displays the last day of the month specified
LAST_DAY
4 math operators usable in calculated columns
add, subtract, multiply, divide
3 conversion functions in SQL that allow conversion from one data type to another
- TO_CHAR
- TO_NUMBER
- TO_DATE
can be used to force priority to the expression contained within them
parentheses
t or f. always use the ROUND function for age or years worked
f, always use TRUNC
if the length is not indicated in SUBSTR, oracle assumes ____
to the end of string
NULL means the value is one of these 4 things
- unassigned
- unavailable
- inapplicable
- unknown
order of operations: ___ and ___ are processed prior to ___ and ___
multiplication/division/addition/subtraction
similar to find and replace function in word
REPLACE
for TO_NUMBER dates must be changed into a ____ before applying TO_NUMBER
character string
in NULLIF(expr1, expr2), what is returned if expr1 <> expr2?
expr1 value is returned
t or f. data can be sorted by multiple columns
t
syntax that subtracts a number of days to a date
date - number
in the function ROUND(column, p), what does p stand for?
p = position to which the data should be rounded
dates within the syntax can be a date ___ or a hard-coded date ___
column, value
what do v, r, and d stand for in DECODE(column, v, r, d)
v = value r = replacement value d = default
not in text: a format element for use with dates that prevents zero-padding of numeric elements and extra space when using commas
fm
comparison operator: used to search for values within a specified list of values
IN
comparison operator: used for searches with a ‘wildcard’ when you do not know the exact value
LIKE