Word: |
Definition: |
Example: |
Represented by: |
Entity Set |
a group of similar abstract objects. |
In a movie database design, movies and stars are entities, and studios are another kind of entity. |
Rectangles |
|
It's like a class in object-oriented programming but it only defines the structure of data, not operations on data. |
They each form an entity set. |
Attributes |
These are properties of entities in an entity set |
In a movie database design, attributes could be "title" and "length" for movies |
Ovals |
|
Attributes are usually implemented as relations, but not all relations come from entity sets |
- |
|
Attributes are of simple types, like strings or numbers. |
- |
Relationships |
These are connections between two or more entity sets, such as the "Stars-in" relationship between the Movies and Stars entity sets. |
|
Diamonds |
|
A relationship means that an entity in one set is connected to an entity in another set. |
|
Binary relationships between two entity sets are most common, but the E/R model allows for any number of entity sets to be involved in a relationship. |
Tuple |
a row in a table in a database, representing a unique instance of an entity or a combination of entities |
|
It contains values for each attribute of the entity. |
Instances of an E/R Diagram: |
describe database schemas, and while no actual data exists in the E/R model, it can be useful to visualize it as if it did. |
|
Entities have values for each attribute, and relationships connect entities |
|
The instance of a relationship is a set of tuples that are connected by the relationship. |
|
These tuples are not the same as those in a relation, and their components are entities instead of primitive types. |
|
Each row of the table representing the relationship set is a list of connected entities from different entity sets. |