Logical Design Flashcards

1
Q

3 main phases of database design

A

Conceptual, Logical, Physical

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

Conceptual database design

A

The process of constructing a model of the data used in an organisation independent of all physical considerations

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

What is done in a conceptual database design?

A

Building an ER model identifying entities, relationships, attributes etc

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

Logical database design

A

Process of constructing a model of data used in an organisation based on a specific data model but independent of a particular DBMS and other physical considerations

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

What is done in a logical database design?

A

ER model is mapped to a set of relational tables

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

How are relationships represented in tables?

A

Copying the primary key of the parent into the child where it becomes a foreign key

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

How is cardinality determined?

A

Looking at the maximum values in the multiplicity ranges on either side of the relationship

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

Left side of the multiplicity range

A

Participation

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

Right side of the multiplicity range

A

Cardinality

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

Why do we use the participation?

A

To merge the entities into a single tables or create separate tables related by a foreign key

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

Mandatory participation on both sides of a 1:1 relationship (1:1, 1:1)

A

Entities are combined into a single table. Of the original PKs, one becomes the PK for that table and the other becomes the alternate key

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

Mandatory participation of one side of a 1:1 relationship (1:1, 0:1)

A

Copy the PK and make it the foreign key in the other table

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

Optional participation on both sides of a 1:1 relationship (0:1, 0:1)

A

Add the PK and make is the FK

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

1:* binary relationship

A

Copy PK and attributes of relationships on the one side table and paste to the many side table

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