Filters
Question type

Study Flashcards

When decreasing cardinalities,there will always be data loss.

Correct Answer

verifed

verified

When using a double nested set of NOT EXISTS SELECT statements,a row that does not match any row matches every row.

Correct Answer

verifed

verified

In a correlated subquery,the DBMS can run the lower SELECT statement by itself and then send the results to the upper SELECT statement.

Correct Answer

verifed

verified

Why do databases need redesigning?

Correct Answer

verifed

verified

Databases need redesigning for two reaso...

View Answer

When redesigning a database,how can we check assumptions about functional dependencies?

Correct Answer

verifed

verified

There are two related SQL techniques tha...

View Answer

A double nested set of NOT EXISTS SELECT statements is ________.


A) a famous pattern in SQL
B) regularly used
C) rarely used to nonexistent in the real world
D) A and B
E) A,B,and C

Correct Answer

verifed

verified

In order to minimize the need to change table names some organizations have a policy that no user or application should ever employ the true name of a table,but use views as table aliases instead.

Correct Answer

verifed

verified

SQL contains an SQL command RENAME TABLENAME that can be used to change table names.

Correct Answer

verifed

verified

When dropping tables and relationships,which of the following steps are included in the process? (The order of the steps listed below is not relevant,only the steps themselves. )


A) Drop the foreign key constraints from the tables
B) Drop the tables
C) Drop the primary key constraints from the tables
D) A and B
E) A,B and C

Correct Answer

verifed

verified

SQL Server 2008 R2 contains a system stored procedure named sp_rename that can be used to change table names.

Correct Answer

verifed

verified

The author refers to the data model produced by reverse engineering as the RE data model.

Correct Answer

verifed

verified

The data model produced by reverse engineering is not truly a logical model because it will contain tables for ________.


A) strong entities
B) weak non-ID-dependent entities
C) ID-dependent entities
D) intersection tables
E) supertype/subtype tables

Correct Answer

verifed

verified

The data model produced by reverse engineering may include some entities that should not appear in the data model.

Correct Answer

verifed

verified

Depending on the DBMS,when changing the minimum cardinality on the parent side from zero to one,the foreign key constraint that defines the relationship may have to be dropped before the change is made and re-added afterwards.

Correct Answer

verifed

verified

The design produced by reverse engineering may be described as a table-relationship diagram.

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.SaleRepNo
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) None of the above is a correctly stated correlated subquery.

Correct Answer

verifed

verified

When dropping a foreign key column from a table,which of the following steps are included in the process? (The order of the steps listed below is not relevant,only the steps themselves. )


A) Drop the foreign key constraint from the table
B) Drop the foreign key column from the table
C) Drop the primary key in the other table referenced by the referential integrity constraint
D) A and B
E) A,B and C

Correct Answer

verifed

verified

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

Correct Answer

verifed

verified

To drop a primary key column from a table the primary key constraint must first be dropped,but this does not require that related foreign keys based on the column be dropped.

Correct Answer

verifed

verified

The continuous circular process of changes is known as the Systems Development Life Cycle (SDLC).

Correct Answer

verifed

verified

Showing 81 - 100 of 101

Related Exams

Show Answer