Week 1 Flashcards

1
Q

What is a Database Management System (DBMS)?

A

Provides efficient, reliable, convenient, safe, multi-user friendly storage and access to massive amounts of persistent data.

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

What is an Entity Relationship Model

A

A graphical representation of the logical view of a Database

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

What is an Entity?

A

An object that has distinguishable properties,
An entity must have attributes
Entity use Rectangular shape

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

What is an entity set?

A

A conceptual representation of entities w.r.t the same set of attributes

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

What is an attribute?

A

Property that distinguishes an entity, is represented with an oval shape

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

What attribute distinguishes an entity (the whole row) within the entity set Car?

A

“Model” uniquely identifies an entity (the whole row) within this entity set.
The attribute that uniquely identifies an entity within this entity set is called a “key attribute” (represented with solid underlines)

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

What are Candidate keys? In the photo, which attributes that can be called Candidate keys?

A

Candidate keys are the set of all possible key attributes. In the photo above, (Model,Length)

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

What is a Derived attribute? What is a Multi-valued attribute?

A

A derived attribute is an attribute that is computed from another attribute. Represented with a dashed line.
A multi-valued attribute is an attribute that have multi-values, represented with double lines.

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

What is a Relation?

A

A logical model for associating two or more Entities.

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

What is a Relation set?

A

It covers all such relations between two or more Entity sets. It is represented with a diamond.

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

What is a Degree of a relationship set?

A

The number of entity sets that participate in a relationship

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

What is a Binary relationship?

A

A relationship that involves two entity sets.

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

What is a Ternary relationship sets?

A

A relationship that involve three entity sets

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

What is a Unary relationship set?

A

A relationship that involves an entity that have a relationship with its own entity

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

What are the 4 types of cardinalities in a relationship?

A
  1. 1:1 (one-to-one)
  2. 1:N (one-to-many)
  3. N:1 (many-to-one)
  4. N:N (many-to-many)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is the cardinality of this relationship?

A

1:1

17
Q

What is the cardinality of this relationship?

A

1:N, One car be repaired by many mechanics, A mechanic can repair one car.

18
Q

What is the cardinality of this relationship?

A

N:1 One car be repaired by a mechanic, A mechanic can repair many cars.

19
Q

What is the cardinality of this relationship?

A

N:N, One car can be repaired by many mechanics, A mechanic can repair many cars

20
Q

What is a Total Participation?

A

Shows that it is mandatory for the entity who link with a total participation (Identified with a double line) to be in the relationship

21
Q

What is a Partial Participation?

A

Shows that it is not compulsory for entity that linked with a partial participation (identified with a single line) to be in the relationship

22
Q

What is a weak entity?

A

A weak entity is an entity that is dependent on a strong entity, meaning that a weak entity cannot be in the table without it strong entity. It is denoted with a double line square.
The weak entity does not have a primary key, instead, it uses a compound key which is a concatenation of its attribute with the primary key of its dependent entity. The weak entity key used in the compound key is denoted with a dashed underline.

23
Q

What is an ISA?

A

An extended ER Hierarchies that is used for adding descriptive attributes specific to a subclass.