Conceptual & Logical Database Design (Week 12 Test) Flashcards

1
Q

What is the purpose of a design methodology?

A

To support and facilitate the process of design using procedures, techniques, tools, and documentation aids.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the three main phases of database design?

A
  • Conceptual database design
  • Logical database design
  • Physical database design
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the aim of conceptual database design?

A

To build the conceptual representation of the database, including identifying important entities, relationships, and attributes.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the output of conceptual database design?

A

ER Diagram

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the aim of logical database design?

A

To translate the conceptual representation to the logical structure of the database, which includes designing the relations.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the output of logical database design?

A

Relational Database Schema

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the aim of physical database design?

A

To decide how the logical structure is to be physically implemented in the target DBMS.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What does physical database design output?

A

Actual implemented database

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is the process of constructing a model of data used in an enterprise independent of physical considerations called?

A

Conceptual database design

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is the process of producing a description of the implementation of the database on secondary storage?

A

Physical database design

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What are the steps involved in building a conceptual data model?

A
  • Identify entity types
  • Identify relationship types
  • Identify and associate attributes with entity or relationship types
  • Determine attribute domains
  • Determine candidate, primary and alternate key attributes
  • Consider use of enhanced modelling concepts (optional step)
  • Check model for redundancy
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is normalisation in the context of logical database design?

A

A process to validate relations to ensure they are structured correctly.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is the difference between the term ‘relation’ and ‘relationship’ in the context of databases?

A

‘Relation’ refers to a table in a relational database, while ‘relationship’ refers to associations between entities in an ER model.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What are the types of attributes that can exist in an ER diagram?

A
  • Simple
  • Composite
  • Multi-valued
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What are weak entities in database design?

A

Entities that are existence-dependent on some other entity.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is a surrogate key in database design?

A

A simpler key used to replace a cumbersome composite primary key.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

How is a many-to-many binary relationship represented in a database?

A

By creating a separate relation to represent the relationship and including foreign keys from both participating entities.

18
Q

What does the term ‘mapping’ refer to in logical database design?

A

The process of converting entities and their attributes from an ER diagram to a set of relations.

19
Q

What is the primary key composed of when mapping weak entities?

A

Partial identifier of weak entity and primary key of identifying relation (strong entity).

20
Q

What is the role of foreign keys in database relations?

A

To link records in one relation to records in another, representing relationships between entities.

21
Q

What attributes are included in a relation representing a multi-valued attribute?

A

The primary key of the entity and the multi-valued attribute as a new relation.

22
Q

What is the first step in logical database design?

A

Derive relations for the local logical data model.

23
Q

Fill in the blank: The output of physical database design is the _______.

A

actual implemented database

24
Q

True or False: The output of logical database design is an ER diagram.

25
What must be checked during the validation of a logical data model?
Relations against user transactions.
26
What type of attributes should be used when mapping composite attributes?
Only their simple, component attributes.
27
What is the process of designing physical representation in database design?
Translating the global logical data model for the target DBMS.
28
How is a 1:1 relationship represented when there is mandatory participation on both sides?
Combine the entities into one relation
29
In a 1:1 relationship with optional participation on both sides, how is the parent and child entity designated?
Arbitrarily, based on which is closer to being mandatory
30
In a 1:1 relationship with mandatory participation on one side, how is the parent and child identified?
The entity with optional participation is the parent
31
What is the approach for mapping unary (recursive) relationships in a one-to-many scenario?
Create a recursive foreign key in the same relation
32
What is the approach for mapping unary (recursive) relationships in a many-to-many scenario?
Create two relations: one for the entity type and one for an associative relation
33
What is the first phase of database design methodology?
Conceptual database design
34
What is the second phase of database design methodology?
Logical database design
35
What is the third phase of database design methodology?
Physical database design
36
What are the three main phases of database design methodology?
Conceptual database design, Logical database design, Physical database design ## Footnote These phases outline the progression from initial concept to implementation.
37
What is the purpose of creating a logical data model from an ER conceptual data model?
To structure the data in a way that can be effectively implemented in a database system ## Footnote It involves defining the relationships and attributes in detail.
38
What types of attributes are mapped in database design?
Simple, composite, and multivalued attributes ## Footnote Each type of attribute has different implications for data storage and retrieval.
39
What is a weak entity in database design?
An entity that cannot be uniquely identified by its own attributes alone ## Footnote Weak entities rely on a 'strong' entity for their identification.
40
What are the types of binary relationships in database design?
1:1, 1:*, *:* ## Footnote These relationships define how entities interact with each other.
41
What is a ternary relationship in database design?
A complex relationship involving three entities ## Footnote It is more complex than binary relationships and requires careful mapping.
42
What does mapping unary (recursive) relationships involve?
Mapping relationships where an entity is related to itself ## Footnote This is common in hierarchical data structures.