MIDTERM QUESTIONS Flashcards
Which of the following is used to uniquely identify each record?
Primary Key
A file is composed of a group of related ____________________.
Records
Analyzing historical sales data stored in a database is commonly referred to as ____.
data mining
Which of the following can be used to link the data in two or more tables together?
Common Field
What represents a characteristic or attribute that is being collected about an entity?
Field
A(n)________________ relationship cannot exist in a physical relational database.
many to many
(T/F) A bridging table can be used to eliminate a many-to-many relationship in a relational database.
True
A field is referred to as a(n) ____________________ in the physical database.
Column
If uncontrolled, what can lead to data anomalies?
Data redundancy
Which of the following terms best describes where a group of characters that represents a customer’s address would be stored in the logical design?
Field
(T/F) According to the Oracle Naming Standard, ‘-‘ (hyphen) is a legal character.
False
A DATE column consists of ____________________ bytes.
7
A column’s ____________________ identifies the type of data that can be stored in a column.
Data type
(T/F) A table name can consist of numbers, letters, and blank spaces.
False
A table name can contain the number sign and ____________________ symbols.
Underscore
(T/F) When declaring a NUMBER data type, scale is the total number of digits both to the left and to the right of the decimal point.
False
(T/F) The scale of a NUMBER column indicates the total number of digits that can be stored in the column.
False
____ commands are used to add new database objects.
DDL
(T/F) A column name can consist of up to 225 characters.
False
What is the default format for a DATE value?
DD-MON-YY
The ____________________ command can be used to modify the structure of a table.
ALTER TABLE
The ____ TABLE command is used to modify an existing column’s data declaration.
ALTER
When using the ALTER TABLE…DROP COLUMN command, which of the following is not correct?
The command can be used to delete multiple columns from a table.
The ____________________ clause of the ALTER TABLE command can be used to delete a column from an existing table.
DROP COLUMN
(T/F) DML commands are used to create or modify database tables.
False
Which of the following keywords can be used to change the size, datatype, and/or default value of an existing column?
MODIFY
(T/F) The MODIFY TABLE command can be used to change the size of a table.
False
A(n) ____________________ enables you to specify that a column value must be a specific value or fall within a range of values.
Check Constraint
A(n) ____________________ constraint is a table constraint that specifies that a column must have a unique value for every table row.
Unique
(T/F) A composite key is created using a value constraint.
False
Which of the following is a table constraint?
Unique Constraint
A(n) ____________________ constraint limits the value that can be placed in a specific column, irrespective of values that exist in other table rows.
Column
Which command would be used to delete table x and all foreign key constraints to x?
Drop x Cascade Constraints
Adding a check condition constraint to a table is a(n) ____________________ action.
Restricted
(T/F) A NOT NULL constraint is an example of a table constraint.
False
Which command is used to disable the constraint named faculty_loc_id_fk in the faculty table?
ALTER TABLE faculty
DISABLE CONSTRAINT faculty_loc_id_fk;
(T/F) A primary key is defined using an integrity constraint.
True
(T/F) The DROP command can be used to remove rows from an existing table.
False
The ____________________ command is used to change data stored in a table.
UPDATE
(T/F) If more than one data value is being added to a table, the values must be separated by parentheses.
False
(T/F) Only one search condition may be listed in a WHERE clause.
False
(T/F) If non-numeric data is being added to a column, the data must be enclosed in double quotation marks.
False
(T/F) Data that is being added to a table is specified in the VALUES clause of the INSERT command.
True
When the INSERT command is being used to enter data into a non-numeric column, the data must be enclosed in ____.
Single quotation marks
(T/F) A subquery can be used with the INSERT command to enter data from an existing table into the destination table.
True
If the ____ clause of the UPDATE command is omitted, then all the rows in the specified table will be changed.
WHERE
When sorting the results in ascending order, which of the following values will be presented first in the output?
Numeric
(T/F) When sorted in descending order, NULL values will be listed first in the results, unless the user specifies otherwise.
True
(T/F) Oracle11 g is case sensitive when comparing data to a search condition.
True
(T/F) To find rows containing a NULL value in a specified column, you must use the search condition of = NULL.
False
(T/F) When two conditions are joined by the AND logical operator, both of the conditions must be evaluated as FALSE to be included in the query results.
False
(T/F) The default sort order for the ORDER BY clause is ascending.
True
When using the LIKE operator, the ____________________ wildcard represents multiple characters.
%