Exam 8: Database Redesign

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

Correlated subqueries can be used to verify functional dependencies.

Free
(True/False)
4.8/5
(33)
Correct Answer:
Verified

True

What is a correlated subquery? Include an example.

Free
(Essay)
4.8/5
(44)
Correct Answer:
Verified

A correlated subquery uses the standard SQL subquery structure of a SELECT statement (called the lower SELECT)within the WHERE clause of a controlling (or upper)SELECT.However,where a non-correlated subquery uses different tables in the upper and lower SELECTS,the correlated subquery uses the same table in both SELECTS.SQL aliases are used to provide different table names within the query.When a non-correlated subquery is processed,the lower SELECT is processed first and the entire result set of the lower SELECT is passed to the upper SELECT.When a correlated subquery is processed,a nested processing is used where each individual result of the lower SELECT is returned one at a time to the upper SELECT for processing.Here is an example that finds the last names of all students advised by a faculty whose last name is 'Smith':
SELECT S.LastName
FROM Student S
WHERE EXISTS
(SELECT *
FROM FACULTY F
WHERE F.FacultyID = S.AdvisorID AND F.LastName = 'Smith'));

A means must be created to recover all test databases to their original state during the redesign testing process.

Free
(True/False)
4.8/5
(38)
Correct Answer:
Verified

True

Which of the following are difficulties when changing the maximum cardinality from 1:1 to 1:N?

(Multiple Choice)
4.7/5
(33)

Which of the following SQL statements is a correctly stated correlated subquery?

(Multiple Choice)
4.9/5
(36)

When running an SQL query that uses EXISTS,the EXISTS keyword will be true if ________.

(Multiple Choice)
4.8/5
(37)

When decreasing maximum cardinalities,there will always be data loss.

(True/False)
4.8/5
(39)

To change a table name,we ________.

(Multiple Choice)
4.8/5
(30)

The data model produced by reverse engineering is a(n)________.

(Multiple Choice)
4.8/5
(27)

Database redesign is rarely needed because databases are usually built correctly the first time.

(True/False)
4.8/5
(33)

The process of reading an actual database schema and producing a data model from that schema is called ________.

(Multiple Choice)
4.9/5
(31)

In the SQL statement: SELECT S1.CustName,S1.SalesRepNo FROM SALES S1; the "S1" is called an alias.

(True/False)
4.8/5
(33)

Changing table names is complicated by the fact that constraints and triggers are often associated with the table and will also need to be changed.

(True/False)
4.8/5
(41)

There is no good SQL command that can be used to change table names.

(True/False)
4.9/5
(35)

When running an SQL query that uses NOT EXISTS,the NOT EXISTS keyword will be true if ________.

(Multiple Choice)
4.8/5
(37)

In a real sense,information systems and organizations do not just influence each other,but rather they create each other.

(True/False)
4.8/5
(31)

When increasing cardinalities from 1:N to N:M,we basically create a new intersection table,fill it with data and drop the old foreign key.

(True/False)
4.8/5
(45)

The authors refer to the data model produced by reverse engineering as the RE data model.

(True/False)
4.9/5
(29)

In a correlated subquery of a database that has tables TableOne and TableTwo,if table TableOne is used in the upper SELECT statement,then which table is used in the lower SELECT statement?

(Multiple Choice)
4.8/5
(35)

To change the minimum cardinality on the parent side from zero to one,the foreign key,which would have been NULL,must be changed to NOT NULL.

(True/False)
5.0/5
(43)
Showing 1 - 20 of 103
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)