Database Design and ER Flashcards
T or F. In a total generalisation, every occurrence of the parent entity is always a occurrence of one of the child entities.
True.
T or F. Logical design and conceptual design should be carried out simultaneously (at the same time) when designing a database.
False.
T or F. Natural join is equivalent to where clause join of TableA.Attribute=TableB.Attribute
False.
T or F. The SQL statement DELETE FROM A removes table A from the database schema.
False.
T or F. If the cardinality of an attribute is equal to (0,1), the cardinality can be omitted in the Entity Relationship Diagram.
False.
T or F. If the cardinality of an attribute is equal to (1,1), the cardinality can be omitted in the Entity-Relationship diagram.
False.
T or F. During logical design, every redundancy in the input ER schema must be removed before the translation to a relational schema.
False.
T or F. An attribute with a cardinality of [0,1] cannot be used as part of an identifier.
True.
T or F. Not all entities must have explicit cardinalities for each of their relationships.
False.
What is database design?
Database design is the process of defining the structure, characteristics, and contents of a database according to specified requirements.
Name 6 stages of DB design.
Feasibility study
Collection & analysis of requirements
Design
Implementation
Validation & Testing
Operation
What are the three phases of the DB design process?
Conceptual design
Logical design
Physical design
Define entity-relationship model.
The Entity Relationship Model is a conceptual data model which provides a set of constructs capable of describing the data requirements of an application in a way that is easy to understand and independent of the criteria for the management and organisation of data on the system.
What do the following represent in the ER model?
(a) Rectangle
(b) Diamond
(c) line with circle on one end
(d) ______
( )
______
(a) Entity
(b) Relationship
(c) Attribute
(d) Composite attribute
What do the following represent in the ER model?
(a) Attribute with circle coloured in black within entity.
(b) Attribute with circle coloured in black to a relationship.
(c) Arrow with black top
(a) Internal identifier (primary key)
(b) External identifier (foreign key, can also be primary key that uses attribute from other entity)
(c) Generalisation