Week 1 Flashcards
What is a Database Management System (DBMS)?
Provides efficient, reliable, convenient, safe, multi-user friendly storage and access to massive amounts of persistent data.
What is an Entity Relationship Model
A graphical representation of the logical view of a Database
What is an Entity?
An object that has distinguishable properties,
An entity must have attributes
Entity use Rectangular shape
What is an entity set?
A conceptual representation of entities w.r.t the same set of attributes
What is an attribute?
Property that distinguishes an entity, is represented with an oval shape
What attribute distinguishes an entity (the whole row) within the entity set Car?
“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)
What are Candidate keys? In the photo, which attributes that can be called Candidate keys?
Candidate keys are the set of all possible key attributes. In the photo above, (Model,Length)
What is a Derived attribute? What is a Multi-valued attribute?
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.
What is a Relation?
A logical model for associating two or more Entities.
What is a Relation set?
It covers all such relations between two or more Entity sets. It is represented with a diamond.
What is a Degree of a relationship set?
The number of entity sets that participate in a relationship
What is a Binary relationship?
A relationship that involves two entity sets.
What is a Ternary relationship sets?
A relationship that involve three entity sets
What is a Unary relationship set?
A relationship that involves an entity that have a relationship with its own entity
What are the 4 types of cardinalities in a relationship?
- 1:1 (one-to-one)
- 1:N (one-to-many)
- N:1 (many-to-one)
- N:N (many-to-many)