Filters
Question type

Study Flashcards

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

A) True
B) False

Correct Answer

verifed

verified

True

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

A) True
B) False

Correct Answer

verifed

verified

To change a table name,we ________.


A) use the SQL RENAME TABLE command
B) use the SQL ALTER TABLENAME command
C) use the SQL MODIFY TABLENAME command
D) create a new table,move the data,and drop the old table

E) B) and C)
F) C) and D)

Correct Answer

verifed

verified

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


A) data modeling
B) data engineering
C) reverse engineering
D) schema modeling

E) A) and B)
F) A) and C)

Correct Answer

verifed

verified

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


A) Preserving the existing tables
B) Preserving the existing relationships
C) Preserving the existing data
D) Both A and B are correct

E) A) and C)
F) B) and D)

Correct Answer

verifed

verified

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


A) SELECT C1.CustName,C1.SalesRepNo
FROM CUSTOMER C1
WHERE C1.SalesRepNo IN
(SELECT S1.SalesRepNo
FROM SALESREP S1
WHERE S1.RepName = 'Smith') ;
B) SELECT C1.CustName,C1.SalesRepNo
FROM CUSTOMER C1
WHERE C1.SalesRepNo IN
(SELECT S1.SaleRepNo
FROM SALESREP S1
WHERE S1.RepName = 'Smith')
AND C1.SalesRepNo=S1.SalesRepNo) ;
C) SELECT C1.CustName,C1.SalesRepNo
FROM CUSTOMER C1
WHERE C1.SalesRepNo IN
(SELECT S1.SaleRepNo
FROM SALESREP S1
WHERE S1.RepName = 'Smith')
AND C1.SalesRepNo<>S1.SalesRepNo) ;
D) SELECT C1.CustName,C1.SalesRepNo
FROM CUSTOMER C1
WHERE C1.SalesRepNo IN
(SELECT C2.SaleRepNo
FROM CUSTOMER C2
WHERE C1.SalesRepNo=C2.SalesRepNo) ;
AND C1.OrderNo<>C2.OrderNo) ;

E) All of the above
F) A) and B)

Correct Answer

verifed

verified

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.

A) True
B) False

Correct Answer

verifed

verified

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

A) True
B) False

Correct Answer

verifed

verified

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

A) True
B) False

Correct Answer

verifed

verified

Correlated subqueries can be used to verify functional dependencies.

A) True
B) False

Correct Answer

verifed

verified

True

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

A) True
B) False

Correct Answer

verifed

verified

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

A) True
B) False

Correct Answer

verifed

verified

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.

A) True
B) False

Correct Answer

verifed

verified

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


A) conceptual schema
B) internal schema
C) dependency graph
D) table-relationship diagram

E) A) and D)
F) B) and C)

Correct Answer

verifed

verified

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.

A) True
B) False

Correct Answer

verifed

verified

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


A) any row in the subquery meets the condition
B) all rows in the subquery meet the condition
C) no row in the subquery meets the condition
D) any row in the subquery fails to meet the condition

E) None of the above
F) B) and D)

Correct Answer

verifed

verified

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?


A) TableOne
B) TableTwo
C) Both TableOne and TableTwo
D) Either TableOne or TableTwo

E) A) and B)
F) None of the above

Correct Answer

verifed

verified

What is a correlated subquery? Include an example.

Correct Answer

verifed

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'));

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


A) any row in the subquery meets the condition
B) all rows in the subquery meet the condition
C) no row in the subquery meets the condition
D) any row in the subquery fails to meet the condition

E) B) and D)
F) B) and C)

Correct Answer

verifed

verified

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

A) True
B) False

Correct Answer

verifed

verified

Showing 1 - 20 of 103

Related Exams

Show Answer