Shared Flashcard Set

Details

OCA- Terms
To help me study for the Oracle OCA
146
Computer Science
Undergraduate 4
02/08/2012

Additional Computer Science Flashcards

 


 

Cards

Term
Union All
Definition
Returns all rows selected by either querying including all duplicates
Term
Union
Definition
return all distinct rows selected by either queries
Term
Subqueries
Definition
A subquery is a query that is nested inside a SELECT, INSERT, UPDATE, or DELETE
statement or inside another subquery. A subquery can return a set of rows or just one
row to its parent query. A scalar subquery is a query that returns exactly one value:
a single row, with a single column. Scalar subqueries can be used in most places in
a SQL statement where you could use an expression or a literal value.
Term
types of problems that subqueries can solve
Definition
- comparison purposes
- star transformation
- Generate values for Projection
- generate rows to be passed to a DML Statement

-
Term
List of types of subqueries
Definition
-Single-row
-Multiple-row
-Correlated
Term
comparison operators
valid for single-row subqueries
Definition
=, >, >=,
<, <=, and <>
Term
comparison operators
valid for multiple-row subqueries
Definition
IN,NOT IN, ANY, and ALL.
Term
correlated suquery
Definition
A correlated subquery is a subquery that contains a join to an outer query. The join may be to the immediate outer query or the outermost query.
Term
The Capabilities of SQL SELECT statement
Definition
projection - refers to the restriction of attributes selected from a relation or table.

selection- refers to the restriction of the tuples or rows selected from a relation(table).

joining - a relational concept, refers to the interaction of tables with each other in a query.
Term
The where clause
Definition
extends the Select statement by providing the language to restrict rows returned based on one or more conditions.
Term
The BETWEEN operator
Definition
facilitates range-based comparison to test whether a column value lies between two values
Term
IN operator
Definition
tests set memberships, so a row is returned if the column value tested in the condition is a member of a set of literals
Term
LIKE operator
Definition
allowing components of character column data to be matched to literals conforming to a specific
Term
IS NULL operator
Definition
which returns rows where the column value contains a null value
Term
AND operator
Definition
merges conditions into one larger condition to which a row must conform to be included in the result set.
Term
OR operator
Definition
separates multiple conditions, at least one of which must be satisfied by the row selected to warrant inclusion in the result set.
Term
NOT operator
Definition
negates conditional operators
Term
ORDER BY clause
Definition
to transform the output of a query into more practical, user friendly sorted data
Term
single ampersand substitution
Definition
The ampersand(&) character is the symbol chosen to designate a substitution variable in a statement and precedes the variable name with no space between them.
Term
double ampersand substitution
Definition
requires user input only once per occurrence of a substitution variable, since it defines a session-persistent variable with the given input value.
Term
Define command
Definition
session-persistent variable may be set explicitly
Term
Verify command
Definition
controls whether SQL*Plus displays old and new versions of statements lines which contain substitution variable
Term
ASCII
Definition
Returns the ASCII decimal equivalent of a character
Term
CHR
Definition
Returns the character given the decimal equivalent
Term
CONCAT
Definition
Concatenates two strings; same as the operator ||
Term
INITCAP
Definition
Returns with the first letter of each word in uppercase
Term
INSTR
Definition
FINDS the numeric starting position of a string within a string
Term
INSTRB
Definition
same as INSTR but counts the bytes instead of characters
Term
LENGTH
Definition
returns the length of a string in characters
Term
LENGTHB
Definition
returns the length of a string in bytes
Term
LOWER
Definition
converts a string to all lowercase
Term
LPAD
Definition
left-fills a string to a set length using a specified character
Term
LTRIM
Definition
Strips leading characters from a string
Term
REPLACE
Definition
performs substring search and replace
Term
RPAD
Definition
right-fills a string to a set length using a specified character
Term
RTRIM
Definition
strips trialing character from a string
Term
SOUNDEX
Definition
returns a phonetic representation of a string
Term
SUBSTR
Definition
returns a section of the specified string, specified by numeric character positions
Term
SUBSTRB
Definition
returns a section of the specified sting, specified by numeric byte positions
Term
TRANSLATE
Definition
performs character search and replace
Term
TRIM
Definition
strips leading , trailing or both leading and trailing character from a string
Term
UPPER
Definition
converts a string to all uppercase
Term
ABS
Definition
returns the absolute value
Term
ACOS
Definition
returns the arc cosine
Term
ASIN
Definition
returns the arc sine
Term
ATAN
Definition
returns the arc tangent
Term
ATAN2
Definition
returns the arc tangent; takes two inputs
Term
BITAND
Definition
return the result of a bitwise AND on two inputs
Term
CEIL
Definition
returns the next higher integer
Term
COS
Definition
returns the cosine
Term
COSH
Definition
returns the hyperbolic cosine
Term
EXP
Definition
returns the base of natural logarithms raised to a power.
Term
FLOOR
Definition
returns the next smaller integer
Term
LN
Definition
returns the natural logarithm
Term
LOG
Definition
returns the logarithm
Term
MOD
Definition
returns the modulo(remainder) of a division operation
Term
NANVL
Definition
returns an alternate number if the value is Not a number
Term
POWER
Definition
returns a number raised to an arbitrary power
Term
Add_Months
Definition
Adds a number of months to a date
Term
CURRENT_DATE
Definition
returns the current date and time in a DATE datatype
Term
DBTIMEZONE
Definition
Returns the database's time zone
Term
EXTRACT
Definition
returns a component of a data/time expression
Term
FRO_TZ
Definition
Returns a timestamp with a time zone for a given timestamp
Term
LAST_DAY
Definition
returns the last day of a month
Term
LocalTIMESTAMP
Definition
returns the current data and time in the session time zone
Term
Months_Bewteen
Definition
returns the number of months between two dates
Term
NEW_TIME
Definition
returns the data/time in a different time zone
Term
NEXT_DAY
Definition
returns the next day of a week following a given date
Term
Round
Definition
Rounds a data/time
Term
SESSIONTIMEZONE
Definition
returns the time zone for the current session
Term
SYS_EXTRACT_UTC
Definition
returns the UTC(GMT) for a timestamp with a time zone
Term
SYSDATE
Definition
returns the current data and time in the DATE datatype
Term
SYSTIMESTAMP
Definition
returns the current timestamp in the TIMESTAMP datatype
Term
TRUNC
Definition
TUNRcates a date to a given granularity
Term
TZ_OFFSET
Definition
returns the offset from UTC for a time zone name
Term
ASCIISTR
Definition
Converts characters to ASCII
Term
BIN_TO_NUM
Definition
Converts a string of bits to a number
Term
cast
Definition
converts datatypes
Term
CHARTOROWID
Definition
casts a character to the ROWID datatype
Term
Compose
Definition
converts to unicode
Term
DECOMPOSE
Definition
Decomposes a Unicode string
Term
convert
Definition
converts from one character set to another
Term
HEXTORAW
Definition
cast a hexidecimal to raw
Term
NUMTODSINTERVAL
Definition
converts a number value to an interval day to second literal
Term
NUMTOYMINTERVAL
Definition
converts a number value to an interval year to month literal
Term
RAWTOHEX
Definition
Casts a raw to a hexidecimal
Term
ROWIDTOCHAR
Definition
casts a ROWID to a character
Term
SCN_TO_TIMESTAMP
Definition
converts an SCN to corresponding timstamp of the change
Term
TIMESTAMP_TO SCN
Definition
converts timestamp to an SCN
Term
TO_BINARY_DOUBLE
Definition
converts input into a Binary_DOUBLE number
Term
TO_BINARY_FLOAT
Definition
converts input into a BINARY_FLOAT number
Term
TO_CHAR
Definition
converts and formats a date into a string
Term
TO_CLOB
Definition
converts character input or NCLOB input to CLOB
Term
TO_DATE
Definition
converts a string to a data, specifying the format
Term
TO_DSINTERVAL
Definition
converts a character string value to an interval data to second literal
Term
TO_LOB
Definition
converts LONG or LONG RAW values to CLOB or BLOB datatype
Term
TO_MULTIBYTE
Definition
converts a single-byte character to its corresponding multibyte equivalent
Term
TO_NUMBER
Definition
converts a string to a number, specifying the format
Term
TO_SINGLE_BYTE
Definition
converts a multibyte character to its corresponding single_byte equivalent
Term
TO_TIMESTAMP
Definition
converts character string to a TIMESTAMP value
Term
TO_TIMESTAMP_TZ
Definition
converts character string to a TIMESTAMP WITH TIME ZINE value
Term
TO_YMINTERVAL
Definition
converts a character string value to an interval year to month literal
Term
UNISTR
Definition
Converts UCS2 unicode
Term
AD or BC
Definition
Epoch inticator
Term
A.D or B.C.
Definition
Epoch inticator with periods
Term
AM or PM
Definition
Meridian indicator
Term
A.M. or P.M.
Definition
Meridian indicator with periods
Term
DY
Definition
Day of week abbreviated
Term
DAY
Definition
Day of week spelled out
Term
D
Definition
Day of week (1-7)
Term
DD
Definition
day of week(1-31)
Term
natural join
Definition
when the source and target tables share identically named columns
Term
join using
Definition
when there are identical columns names in the source and target tables and you want yo exclude as join columns
Term
Join .. on
Definition
allows join columns to be explicitly stated. the most widely used natural join format
Term
outer join
Definition
where at least one row in the target table is joins
Term
Cross join
Definition
this join creates an output for every combination of the source and target table rows
Term
nonequijoins
Definition
match column values from different tables based on the inequality expression
Term
self-join
Definition
associating rows with each other based on a hierarchical relationship require oracle to join a table to itself
Term
left-outer join
Definition
If a left outer join
is performed then rows excluded by the
inner join, to the left of the JOIN keyword,
are also returned.
Term
right-outer join
Definition
If a right outer join is
performed then rows excluded by the inner
join, to the right of the JOIN keyword, are
returned as well.
Term
full outer join
Definition
returns the combined results of a left and right outer join.
Term
ROWID
Definition
A value coded in base 64 that is the pointer to the location of row in a table. encrypted. Within it is the exact physical address. ROWID is an Oracle proprietary data type, not visible unless specifically selected.
Term
LONG RAW
Definition
Like LONG, but binary data that will not be converted by Oracle Net. Any LONG RAW columns should be converted to BLOBs
Term
LONG
Definition
Character data in the database character set, up to 2GB. All the functionality of Long(and more) is provided by CLOB; LONG should not be used in a modern database and if your database has any columns of this type they should be converted to CLOB
Term
BFILE
Definition
A locator pointing to a file stored on the operating system of the database server. THe of the files is limited to 4GB.
Term
BLOB
Definition
Like CLOB, but binary data that will not undergo character set conversion by Oracle net.
Term
NCLOB
Definition
like CLOB, but the data is stored in the alternative national langage character set, one of the permitted Unicode character sets.
Term
CLOB
Definition
Character data in the database character set, size effectively unlimited:4GB multiplied by the database block size
Term
Interval day to second
Definition
used for recording a period in days and seconds between two Dates or TIMESTAMPs
Term
Interval year to Month
Definition
used for recording a period in years and months between two DATEs and TIMESTAMPs
Term
Timestamp with local Timezone
Definition
like TIMESTAMP, but the data is normalized to the database time zone on saving. When
Term
TIMPStAMP wtih TIMEZone
Definition
like, TIMESTAMP but the data is stored with a record kept of the time zone to which is refers. The length may be up to 13 bytes, depending on precision, This data type lets Oracle determine the difference between two times by normalizing then to UTC even if the times are for different time zones.
Term
TIMESTAMP
Definition
this length zero if the column is empty or up to 11 bytes depending on the precision of up to 9 decimal places for the seconds, 6 places by default.
Term
DATE
Definition
This is either length zero, if the column is empty or 7 empty. All data includes century, year, month, day, hour, minute, and second.
Term
Integer
Definition
equivalent to Number, with scale zero
Term
FLOAT
Definition
this an ANSI data type, floating-point number with precision of 126 binary(or 38 decimal). Oracle also provides Binary_FLOAT and Binary_Double
Term
Number
Definition
numeric data for which you can specify precision and scale
Term
RAW
Definition
variable-length binary data, from 1 byte to 4KB. UNlike to CHAR and VARCHAR2 data, RAW is not converted
Term
CHAR
Definition
fixed-length character data , from byte to 2KB, the database character set, if the data is not the length of the column that is will be padded with spaces
Term
NVARCHAR2
Definition
the data is stored in the alternative national language character set, one of the permitted Unicode character sets.
Term
VARCHAR2
Definition
variable-length character data, from 1 byte to 4KB. The data is stored in the database character set.
Term
UNIQUE
Definition
nominates a columns for which the value must be different for every row in teh table
Term
NOT NULL
Definition
this forces values to be entered into the key column.
Term
primary key
Definition
is the the means of locating a single row in a table.
Term
foreign key
Definition
is defined on the child table in a parent-child relationship
Term
check
Definition
can be used to enforce simple rules, such as that the value entered in a column must be within a range of values
Supporting users have an ad free experience!