Use LEFT and RIGHT arrow keys to navigate between flashcards;
Use UP and DOWN arrow keys to flip the card;
H to show hint;
A reads text to speech;
31 Cards in this Set
- Front
- Back
SQL Server supports AFTER and INSTEAD OF triggers, but not BEFORE triggers. (T/F)
|
True
|
|
In SQL Server, insert and update triggers store old values in a pseudotable named deleted. (T/F)
|
False
|
|
Each entity in the extended E-R model is represented as a table in the relational database design. (T/F)
|
True
|
|
A surrogate key is appropriate when the primary key of a table contains a lengthy text field. (T/F)
|
True
|
|
A null value is an attribute value that has been set to zero. (T/F)
|
False
|
|
When placing a foreign key for a 1:1 relationship, the key of either table can be used as the foreign key in the other table. (T/F)
|
True
|
|
Like all ID-dependent relationships, the parents of an association table are required. (T/F)
|
True
|
|
All identifying relationships are 1:N. (T/F)
|
True
|
|
When the parent entity has a surrogate key, the enforcement actions are the same for both parent and child. (T/F)
|
False
|
|
SQL Server AFTER triggers may be assigned to either tables or views. (T/F)
|
False
|
|
Inline user defined function can use input parameters. (T/F)
|
True
|
|
A view may not be assigned to a(n) ____.
a) BEFORE trigger b) INSTEAD OF trigger c) CONCURRENT trigger d) AFTER trigger e) any of the above |
d) AFTER trigger
|
|
Which of the following is not true about representing subtypes in a relational database design?
a) one table is created for the supertype and one for each subtype b) all of the attributes of the supertype are added to the subtype relations c) the key of the supertype is made the key of the subtypes d) a subtype and its supertype are representations of the same underlying table e) and instance of the supertype may be related to one instance each of several subtypes |
b) all of the attributes of the supertype are added to the subtype relations
|
|
A referential integrity constraint policy that insures that all rows containing a particular foreign key value in a table are eliminated from the table when the row containing the corresponding primary
a) incremental updates b) incremental deletes c) controlled key adjustments d) cascading updates e) cascading deletes |
e) cascading deletes
|
|
Which of the following is not a step in the database design process?
a) create tables and columns from entities and attributes b) select primary keys c) represent relationships d) create constraints and triggers e) all of the above are steps in the database design process |
d) create constraints and triggers
|
|
The identifier of the entity becomes the ____ of the corresponding table.
a) primary key b) foreign key c) supertype d) subtype e) either a or b |
a) primary key
|
|
One of the important properties of an attribute is whether or not it is _____.
a) found in more than one entity b) required c) character or numeric d) subject to normalization e) subject to de-normalization |
b) required
|
|
In many-to-many relationships in a relational database design _______.
a) the key of the child is placed as a foreign key into the parent b) the key of the parent is placed as a foreign key into the child c) the keys of both tables are placed in a third table d) the keys of both tables are joined into a composite key e) c and d |
e) c and d
|
|
When transforming an ID-dependent E-R data model relationship into a relational database design, and the child entity is designed to use a surrogate key, then _____.
a) the parent entity must also use a surrogate key b) the relationship remains an ID-dependent relationship c) the relationship changes to a non-ID-dependent relationship d) a and b e) a and c |
c) the relationship changes to a non-ID-dependent relationship
|
|
RAISEERROR sends a message, optionally logging it in the error log, but it does not affect batch execution unless ____, in which case the connection is closed.
a) the state of the message is set to 19 b) the severity is 20 or more c) the disconnect option is turned on d) the error message has no log and a message_id of 5000 e) a and c |
b) the severity is 20 or more
|
|
For triggers on insert and update actions, the new column values are stored in ____.
a) a table named new:TableName b) a table named old: TableName c) a pseudotable name inserted d) a pseudotable name deleted e) none of the above |
c) a pseudotable name inserted
|
|
You must ____ if you want a function to use an input parameter's default value.
a) leave the parameter area blank b) specify the DEFAULT keyword c) specify the NULL keyword d) enter '%%%%' e) you cannot have default values with inline user defined functions |
b) specify the DEFAULT keyword
|
|
SQL server does not support ____ triggers as Oracle does.
|
BEFORE
|
|
For update and delete triggers, old data values are stored in a pseudotable named ______.
|
deleted
|
|
A referential integrity constraint policy that insures that foreign key values in a table are correctly maintained when there is a change to the primary key value in the parent is called ____.
|
cascading updates
|
|
In 1:N relationships, the table on the "one" side is called the ______.
|
parent
|
|
In representing a M:N relationship in a relational database design, a(n) ___ table is created.
|
intersection
|
|
To represent a M:N relationship in a relational database design, in essence it is reduced to two ____ relationships.
|
1:N
|
|
The ____ system variable provides the error status of the most recently executed statement.
|
@@ERROR
|
|
For insert and update triggers, new data values are stored in a pseudotable named ______.
|
inserted
|
|
User-defined functions that return a table data type are referred to as _____.
|
table-valued functions
|