Intro to MySQL Exam 2

Intro to MySQL Exam 2

memorize.aimemorize.ai (lvl 286)
Section 1

Preview this deck

composite

Front

Star 0%
Star 0%
Star 0%
Star 0%
Star 0%

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Active users

0

All-time users

0

Favorites

0

Last updated

4 years ago

Date created

Mar 1, 2020

Cards (167)

Section 1

(50 cards)

composite

Front

A ____ attribute can be further subdivided to yield additional attributes.

Back

derived

Front

If the focus is on data-retrieval speed, you might also be forced to include ____ attributes in the design, which would not ordinarily be done.

Back

existence

Front

If an entity can exist apart from one or more related entities, it is said to be ____-independent.

Back

dependency

Front

In a(n) ____ diagram, the arrows above the attributes indicate all desirable dependencies.

Back

maximum and minimum

Front

Knowing the ____ number of entity occurrences is very helpful at the application software level.

Back

simple

Front

A ____ attribute is one that cannot be subdivided.

Back

dashed line

Front

A derived attribute is indicated in the Chen model by a ____.

Back

three

Front

Normalization works through a series of stages called normal forms. For most purposes in business database design, ____ stages are as high as you need to go in the normalization process.

Back

repeating group

Front

A relational table must not contain a(n) ____.

Back

optionality

Front

The term "____" is used to label any condition in which one or more optional relationships exist.

Back

domain

Front

The set of possible values for an attribute is a ____.

Back

optional

Front

If Tiny College had some departments that were classified as "research only," they would not offer courses; therefore, the COURSE entity would be ____ to the DEPARTMENT entity.

Back

existence

Front

An entity is said to be ____-dependent if it can exist in the database only when it is associated with another related entity occurrence.

Back

weak

Front

A ____ entity has a primary key that is partially or totally derived from the parent entity in the relationship.

Back

weak

Front

The M:N relationship between STUDENT and CLASS must be divided into two 1:M relationships through the use of the ENROLL entity; the ENROLL entity is ____.

Back

person's age

Front

A ____ should be a derived attribute.

Back

There is no primary key

Front

The ____ attribute(s) make up the primary key in the table definition: CLASS (CRS_CODE, CLASS_SECTION, CLASS_TIME, CLASS_ROOM, PROF_NUM)

Back

1NF

Front

A table that has all key attributes defined, has no repeating groups, and all its attributes are dependent on the primary key, is said to be in ____.

Back

single-valued

Front

A ____ attribute can have only one value.

Back

conceptual

Front

Some ____ database modeling concepts can be expressed only using the Chen notation

Back

composite

Front

A ____ identifier is composed of more than one attribute

Back

simple

Front

Some attributes are classified as ____.

Back

recursive

Front

If an employee within an EMPLOYEE entity has a relationship with itself, that relationship is known as a ____ relationship.

Back

normalization stages

Front

1NF, 2NF, and 3NF are ____.

Back

Multivalued

Front

____ attributes can have many values.

Back

entities

Front

A relationship is an association between ____.

Back

M:N

Front

Although the conceptual model can handle ____ relationships and multivalued attributes, you should not implement them in the RDBMS.

Back

partial

Front

Dependencies based on only a part of a composite primary key are called ____ dependencies.

Back

(1,1)

Front

The Crow's foot symbol with two parallel lines indicates ____ cardinality.

Back

DKNF

Front

Of the following normal forms, ____ is mostly of theoretical interest.

Back

determines

Front

Attribute A ____ attribute B if all of the rows in the table that agree in value for attribute A also agree in value for attribute B.

Back

underlining

Front

In an ER diagram, primary keys are indicated by ____.

Back

strong

Front

Another word for existence-independent is ____.

Back

information

Front

Complex ____ requirements may dictate data transformations, and they may expand the number of entities and attributes within the design.

Back

repeating group

Front

A ____ derives its name from the fact that a group of multiple entries of the same type can exist for any single key attribute occurrence.

Back

mandatory

Front

The existence of a(n) ____ relationship indicates that the minimum cardinality is at least 1 for the mandatory entity.

Back

prime

Front

An attribute that is part of a key is known as a(n) ____ attribute.

Back

data integrity problems

Front

Data redundancy produces ____.

Back

anomalies

Front

A table that displays data redundancies yields ____.

Back

need not be physically stored within the database

Front

A derived attribute ____.

Back

4NF

Front

Some very specialized applications may require normalization beyond the ____.

Back

(min, max)

Front

In the ERD, cardinality is indicated using the ____ notation.

Back

domain

Front

Attributes may share a ____.

Back

weak

Front

When the PK of one entity does not contain the PK of a related entity, the relationship is ____.

Back

Denormalization

Front

____ yields better performance.

Back

associative

Front

A(n) ____ entity is composed of the primary keys of each of the entities to be connected.

Back

1NF

Front

From a structural point of view, 2NF is better than ____.

Back

one

Front

Ideally, an entity identifier is composed of ____ attribute(s)

Back

transitive dependency

Front

A(n) ____ exists when there are functional dependencies such that Y is functionally dependent on X and Z is functionally dependent on Y, and X is the primary key.

Back

Create a detailed narrative of the organization's description of operations.

Front

The following step occurs first in the process of building an ERD: ____.

Back

Section 2

(50 cards)

BCNF

Front

A table where every determinant is a candidate key is said to be in ____.

Back

2NF

Front

Before converting a table into 3NF, it is imperative the table already be in ____.

Back

three

Front

The ANSI standard defines ____ type(s) of outer join(s)

Back

AutoNumber

Front

To generate a surrogate key, Microsoft Access uses a(n) ____ data type.

Back

DECODE

Front

The Oracle ____ function compares an attribute or expression with a series of values and returns an associated value or a default value if no match is found.

Back

3NF

Front

For most business transactional databases, we should normalize relations into ____.

Back

inner

Front

When using a(n) ____ join, only rows that meet the given criteria are returned.

Back

3NF

Front

Most designers consider the BCNF as a special case of the ____.

Back

Numeric

Front

The most likely data type for a surrogate key is ____.

Back

SMALLINT

Front

The ____ data type is compatible with NUMBER.

Back

FROM table1 LEFT [OUTER] JOIN table2

Front

The syntax for a left outer join is ____.

Back

4NF

Front

A table where all attributes are dependent on the primary key and are independent of each other, and no row contains two or more multivalued facts about an entity, is said to be in ____.

Back

atomicity

Front

Improving ____ leads to more flexible queries.

Back

IN

Front

The ____ operator could be used in place of INTERSECT if the RDBMS does not support it.

Back

3NF

Front

A table that is in 2NF and contains no transitive dependencies is said to be in ____.

Back

subquery

Front

A ____ is a query (SELECT statement) inside a query.

Back

sequence

Front

The Oracle equivalent to an MS Access AutoNumber is a(n) ____.

Back

flexibility

Front

In a real-world environment, we must strike a balance between design integrity and ____.

Back

PSM

Front

A(n) ____ is a block of code (containing standard SQL statements and procedural extensions) that is stored and executed at the DBMS server.

Back

NOT IN

Front

The ____ operator could be used in place of MINUS if the RDBMS does not support it.

Back

names of the relation attributes must be the same and their data types must be alike

Front

"Union-compatible" means that the ____.

Back

2NF

Front

A table that is in 1NF and includes no partial dependencies is said to be in ____.

Back

partial dependencies

Front

If a table has multiple candidate keys and one of those candidate keys is a composite key, the table can have ____ based on this composite candidate key, even when the primary key chosen is a single attribute.

Back

outer

Front

In subquery terminology, the first query in the SQL statement is known as the ____ query.

Back

make sure entities are in normal form before table structures are created

Front

When designing a database, you should ____.

Back

query UNION query

Front

The syntax for the UNION query is ____.

Back

Data warehouse

Front

____ databases reflect the ever-growing demand for greater scope and depth in the data on which decision support systems increasingly rely.

Back

cross

Front

The statement SELECT * FROM T1, T2 produces a(n) ____ join.

Back

entities

Front

Normalization represents a micro view of the ____ within the ERD.

Back

MINUS

Front

The ____ statement in SQL combines rows from two queries and returns only the rows that appear in the first set but not in the second.

Back

NEXTVAL

Front

The ____ pseudo-column is used to select the next value from a sequence.

Back

JOIN ON

Front

If you wish to create an inner join, but the two tables do not have a commonly named attribute, you can use a(n) ____ clause.

Back

144

Front

How many rows would be returned from a cross join of tables A and B, if A contains 8 rows and B contains 18?

Back

inner

Front

In a subquery, the ____ query is executed first.

Back

DATE()

Front

The ____ function returns the current system date in MS Access.

Back

compromises that include denormalization

Front

The conflicts between design efficiency, information requirements, and processing speed are often resolved through ____.

Back

derived

Front

From a system functionality point of view, ____ attribute values can be calculated when they are needed to write reports or invoices.

Back

MINUS

Front

____ is a relational set operator.

Back

full outer

Front

A ____ join returns rows with matching values and includes all rows from both tables (T1 and T2) with unmatched values.

Back

temporary

Front

An example of denormalization is using a ____ denormalized table to hold report data. This is required when creating a tabular report in which the columns represent data that is stored in the table as rows.

Back

three

Front

If you have three different transitive dependencies, ____ different determinant(s) exist.

Back

candidate

Front

BCNF can be violated only if the table contains more than one ____ key.

Back

CHAR(15)

Front

The ____ data type is considered compatible with VARCHAR(35).

Back

UNION

Front

The ____ query combines rows from two queries and excludes duplicates.

Back

has no multivalued dependencies

Front

A table is in 4NF if it is in 3NF and ____.

Back

outer

Front

A(n) ____ join returns not only the rows matching the join condition (that is, rows with matching values in the common columns) but also the rows with unmatched values.

Back

natural

Front

A(n) ____ join will select only the rows with matching values in the common attribute(s).

Back

the level of detail represented by the values stored in a table's row

Front

Granularity refers to ____.

Back

cannot be further subdivided

Front

An atomic attribute ____.

Back

JOB_CHG_HOUR

Front

According to naming conventions described in Chapter 2, ____ would be the best name for a column representing the charges per hour in a table named JOB.

Back

Section 3

(50 cards)

procedural SQL

Front

In Oracle, ____ make(s) it possible to merge SQL and traditional programming constructs, such as variables, conditional processing (IF-THEN-ELSE), basic loops (FOR and WHILE loops,) and error trapping.

Back

database

Front

The process of database design and implementation is ____ development.

Back

unrelated

Front

As long as two transactions, T1 and T2, access ____ data, there is no conflict, and the order of execution is irrelevant to the final outcome.

Back

to create complete, normalized, nonredundant, and fully integrated conceptual, logical, and physical database models

Front

The primary objective of database design is ____.

Back

maintenance

Front

Evaluation, maintenance, and enhancement are part of the ____ phase of the SDLC.

Back

entity relationship modeling and normalization

Front

The conceptual design step that defines entities, attributes, and relationships is ____.

Back

The program is abnormally terminated.

Front

ANSI defines four events that signal the end of a transaction. Of the following events, which is defined by ANSI as being equivalent to a ROLLBACK?

Back

introducing changes

Front

The maintenance and evolution phase of the DBLC involves ____.

Back

serializability and isolation

Front

A single-user database system automatically ensures ____ of the database, because only one transaction is executed at a time.

Back

database initial study

Front

Analyzing the company situation is part of the ____ phase of the DBLC.

Back

COMMIT

Front

The ANSI has defined standards that govern SQL database transactions. Transaction support is provided by two SQL statements: ____ and ROLLBACK.

Back

identify the ER model's central entity

Front

The first step in the ER model verification process is to ____.

Back

Physical security

Front

____ allow(s) physical access to areas by authorized personnel only.

Back

transaction log

Front

The information stored in the ____ is used by the DBMS for a recovery requirement triggered by a ROLLBACK statement, a program's abnormal termination, or a system failure such as a network discrepancy or a disk crash.

Back

implementation

Front

Coding, testing, and debugging are part of the ____ phase of the SDLC.

Back

CASE

Front

The implementation of ____-produced applications tends to prolong the operational life of systems by making them easier to update and maintain.

Back

Isolation

Front

____ means that data used during the execution of a transaction cannot be used by a second transaction until the first one is completed.

Back

one in which all data integrity constraints are satisfied

Front

A consistent database state is ____.

Back

Atomicity

Front

____ requires that all operations of a transaction be completed.

Back

distributed database design

Front

The conceptual design step that defines the DBMS and data model to use is ____.

Back

analysis

Front

"What are the requirements of the current system's end users?"is a question asked during the ____ phase of the SDLC.

Back

analysis

Front

The logical systems design is created during the ____ phase of the SDLC.

Back

triggers

Front

Oracle recommends ____ for creating audit logs.

Back

data-model verification

Front

The conceptual design step that identifies ER modules and validates insert, update, and delete rules is ____.

Back

analysis

Front

User requirements, existing system evaluation, and logical system design are part of the ____ phase of the SDLC.

Back

data analysis and requirements

Front

The conceptual design step that determines end-user views, outputs, and transaction-processing requirements is ____.

Back

The end of a program is successfully reached.

Front

ANSI defines four events that signal the end of a transaction. Of the following events, which is defined by ANSI as being equivalent to a COMMIT?

Back

logical

Front

A transaction is a ____ unit of work that must be either entirely completed or aborted.

Back

Module

Front

____ coupling describes the extent to which modules are independent of one another.

Back

planning

Front

The initial assessment and the feasibility study are part of the SDLC's ____ phase.

Back

identify, analyze, and refine the business rules

Front

The first step in developing the conceptual model using ER diagrams is to ____.

Back

testing and evaluation

Front

Testing, fine-tuning, and evaluating the database and its applications are part of the ____ phase of the DBLC.

Back

detailed systems design

Front

The design of the system's processes is completed during the ____ phase of the SDLC.

Back

physical

Front

The ____ design is the process of selecting the data storage and data access characteristics of the database.

Back

lost updates

Front

One of the three most common data integrity and consistency problems is ____.

Back

implementation

Front

The database is loaded during the ____ phase of the SDLC.

Back

when the first SQL statement is encountered

Front

The implicit beginning of a transaction is ____.

Back

database design

Front

Creating the conceptual design and selecting DBMS software are part of the ____ phase of the DBLC.

Back

BEGIN

Front

The PL/SQL block starts with the ____ clause.

Back

atomicity, durability, consistency, and isolation

Front

All transactions must display ____.

Back

systems

Front

The process of creating an information system is known as ____ development.

Back

operation

Front

Producing the required information flow is part of the ____ phase of the DBLC.

Back

database initial study

Front

The first step in the DBLC is ____.

Back

detailed systems design

Front

A detailed system specification is part of the ____ phase of the SDLC.

Back

implementation and loading

Front

Installing the DBMS, creating the database, and loading or converting the data are part of the ____ phase of the DBLC.

Back

defining objectives

Front

The database initial study phase of the DBLC involves ____.

Back

planning

Front

"Should the existing system be replaced?" is a question that is asked during the ____ stage of the SDLC.

Back

RETURN

Front

A stored function uses the ____ statement to return a value.

Back

verification

Front

During decentralized design, after the ____ process has been completed, all modules are integrated into one conceptual model.

Back

database administrator

Front

Once the data has been loaded into the database, the ____ tests and fine-tunes the database for performance, integrity, concurrent access, and security constraints.

Back

Section 4

(17 cards)

lock

Front

The ____ manager is responsible for assigning and policing the locks used by the transactions.

Back

Locks

Front

____ are required to prevent another transaction from reading inconsistent data.

Back

shrinking

Front

A(n) ____ phase in a two-phase lock is when a transaction releases all locks and cannot obtain any new lock.

Back

read

Front

In the optimistic approach, during the ____ phase, a transaction scans the database, executes the needed computations, and makes the updates to a private copy of the database values.

Back

database-level

Front

A ____ lock prevents the use of any tables in the database from one transaction while another transaction is being processed.

Back

deadlock

Front

A(n) ____ condition occurs when two or more transactions wait for each other to unlock data.

Back

page-level

Front

A ____ lock locks the entire diskpage.

Back

timestamping

Front

The ____ approach to scheduling concurrent transactions assigns a global unique stamp to each transaction.

Back

row-level

Front

A ____ lock allows concurrent transactions to access different rows of the same table.

Back

write

Front

In the optimistic approach, during the ____ phase, changes are permanently applied to the database.

Back

Two transactions cannot have conflicting locks.

Front

What is a rule that applies to the two-phase locking protocol?

Back

table-level

Front

A ____ lock locks the entire table preventing access to any row by a transaction while another transaction is using the table.

Back

exclusive lock

Front

A(n) ____ specifically reserves access to the transaction that locked the object.

Back

binary

Front

A(n) ____ lock has only two stages (0 and 1).

Back

diskblock

Front

A diskpage, or page, is the equivalent of a ____.

Back

granularity

Front

Lock ____ indicates the level of lock use.

Back

shared

Front

A(n) ____ lock exists when concurrent transactions are granted read access on the basis of a common lock.

Back