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;
33 Cards in this Set
- Front
- Back
T/F The relational always produces a relation with no duplicate tuples?
|
True
|
|
T/F In an SQL query, the SELECT clause is evaluated after all its other clauses.
|
True
|
|
SELECT Essn
FROM WORKS_ON WHERE Pno IN (1,2,3); The (1,2,3) in this WHERE statement are an example of what? |
explicit set of values.
|
|
What do instance variables do?
|
hold values that define internal state of object
|
|
What are the two parts of Operations?
|
Signature/interface and Implementation
|
|
What does the cardinality function do?
|
Returns the current number of elements in an array
|
|
What does a Reference type object do?
|
Creates unique system-generated object identifiers
|
|
T/F The relational calculus is a more procedural formalism, compared to the relation algebra which is more declarative.
|
False
|
|
T/F The FROM clause of a SELECT statement performs a natural join of all the tables in its list.
|
False
|
|
T/F The relational algebra and relation calculus are equivalent in expressive power.
|
True
|
|
T/F In the E/R model, a property might be missing if is not applicable for an entity instance?
|
False
|
|
T/F Whether a relationship is 1:N or N:1 is merely a matter of perspective; we make no formal distinction between the two possibilities.
|
False
|
|
T/F A weak entity is one that is no longer essential within the database; it is obsolete.
|
False
|
|
T/F Composite attributes can be composed of other composite attributes. In other words, the compositionality of attributes can forma hierarchy
|
True
|
|
T/F An identifying relationship relates a weak entity to its own.
|
True
|
|
T/F The number of tuples in A x B is the number of tuples in A plus the number of tuples in B
|
False
|
|
T/F The order of columns in a table is not significant in a relational schema
|
False
|
|
T/F Entities and relationships are both mapped to relations in the transition from conceptual to logical models
|
True
|
|
T/F A participation constraint specifies whether the existence of an entity is dependent on the existence of another entity via a relationship.
|
False
|
|
T/F A superkey is a set of attributes, each of which is unique independently from the rest.
|
True
|
|
When mapping a 1:N relationship to the relational model, the standard approach is ?
|
the primary key of the one side appears as a foreign key on the many side.
|
|
In a baseball database that tracks statistics over many years, the relationship between player and team is ?
|
N:M
|
|
In a congressional database, the relationship between congressman and district is what kind of participation?
|
Total for both?
|
|
When the primary key from a relation appears as an attribute (or attributes) in another relation, it is referred to as a ?
|
foreign key
|
|
When mapping from an E/R to a Relational model composite attributes in the E/R model are ?
|
flattened to just the simple component attributes in the relational model
|
|
When mapping from an E/R to a Relational model if there are multiple keys for an entity in the E/R model than?
|
then there will be the one of them will be selected to be the primary key in the relational model.
|
|
The three-schema architecture of database systems refers to?
|
internal (physical) level, conceptual level, and external (view) level
|
|
The degree of a relations refers to what?
|
the number of attributes it has
|
|
Referential and key constraints are examples of what in the relational model?
|
Explicit constraints
|
|
You can add a row using SQL in a database with command?
|
INSERT
|
|
T/F A right outer join includes all the tuples from both relations satisfying the join condition, along with all the tuples in the right relation that do not have a corresponding tuple in the left relation.
|
True
|
|
Two relations are union compatible if they have the same number of ?
|
attributes
|
|
The relational algebra operations enable a user to specify basic?
|
data retrieval
|