Database Design & Relational Model Flashcards

1
Q

Core Database Design Steps

A

Conceptual Design, Logical Design, Physical Design

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

Conceptual Design

A

o Construct a description of the information used in an enterprise
o Focus on documenting customer intention, disregard technology

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

• Logical Design

A

o Construct a description based on a specific data model (e.g relational)
o Focus on abstract tech, disregard implementation

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

• Physical Design

A

o Describe implementation using a particular DBMS, file structures, indexes, security…

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

Key constraints

A

It is how many entities take part in a given relationship(1:1, 1:many, many:1)

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

Entity

A

Real World object distinguishable from other objects

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

Entity Set

A

Collection of similar entities. All entities on a entity set have the same attributes

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

Attribute Domain

A

Data Type of the attribute

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

Relationship

A

Unique association among two or more entities

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

Total Participation Constraint

A

Entity set E is total with relation to set R if all entities in E participates in R.

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

Partial Participation Constraint

A

Entity set E is partial with relation to set R, if some E entities does not participate in R

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

ISA Hierarchy

A

The purpose of ISA hierarchies is to add attributes specific to a subclass and also identify specific entities that participate in a relationship. There’s a superclass and numerous subclasses

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

Aggregation

A

Aggregation is a relationship which involves entity sets and a relationship set. With aggregation, we treat a relationship as an entity set for purposes of participation in other relationships.

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

Ternary Relationship

A

(cost) |
| | |
|Projects – Sponsors —Depts.|
——————————————–
|
monitors - (since)
|
Employees

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

Cardinality

A

Number of rows of a table

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

Degree/Arity

A

Number of columns in a table

17
Q

Attributes

A

Sid, name, login, gpa etc…

18
Q

Translating ISA Hierarchies to Relations Alternative 1

A

Alternative 1: Separate relation per entity set
o 3 relations: ex. Employees, Hourly_Emps, Contract_Emps
o Every employee is recorded in Employees
o Must delete Hourly_Emps tuple if reference Employees tuple is deleted
o Queries involving all employees are easy, those involving just Hourly_Emps require a join to get some attributes

19
Q

Translating ISA Hierarchies to Relations Alternative 2

A

Alternative 2: Relations only sets with instances
o 2 relations: Hourly_Emps and Contract_Emps
o Hourly_Emps: ssn, name blab la bla
o Each employee must be in one of these two subclasses, so they both have employees’ attributes as their own

20
Q

Translating ISA Hierarchies to Relations Alternative 3

A

Alternative 3: One big relation

o 1 relation: Employees

21
Q

Advantages and Disatvantages ISA Hierarchies

A

Advantage: Clean results
Disadvantage: Centralization of Power