] >


An entity set is the collection of instances (i.e., entities) represented by an entity type.

An entity set is also called an extension of the entity type

A relationship set is the collection of instances (i.e., relationships between objects) represented by a relationship type.

Relationship types may associate an entity type with itself. In such a case, the roles of the entity types in the relationship type are listed on the edges, and the relationship is said to be recursive.






A ‘blue and red’ shirt

A ‘age’ from ‘birth date’





Regular entity types with keys are sometimes called strong entity types.

Cardinality ratio constraint


| Entity |
![]() |
| Weak Entity |
![]() |
| Relationship |
![]() |
| Identifying Relationship |
![]() |
| Attribute |
![]() |
| Key Attribute |
![]() |
| Multivalued Attribute |
![]() |
| Composite Attribute |
![]() |
| Derived Attribute |
![]() |
| Total participation of in |
![]() |
| Cardinality ratio for in |
![]() |
| Structural constraint (min,max) on participation of in |
![]() |
Due: Tu, Oct 14
Problem 3.21 in textbook (pages 79–80 4th ed; 93 5th ed):
“Design an er schema for keeping track of information about votes taken in the U.S. House of Representatives during the current two-year congressional session. The database needs to keep track of each U.S. state’s Name (e.g., Texas, New York, California) and includes the Region of the state (whose domain is {Northeast, Midwest, Southeast, Southwest, West}). Each congressperson in the House of Representatives is described by their Name, and includes the District represented, the StartDate when they were first elected, and the political Party they belong to (whose domain is {Republican, Democrat, Independent, Other}). The database keeps track of each bill (i.e., proposed law), and includes the BillName, the DateOfVote on the bill, whether the bill PassedOrFailed (whose domain is {YES,NO}), and the Sponsor (the congressperson(s) who sponsored—i.e., proposed—the bill). The database keeps track how each congressperson voted on each bill (domain of vote attribute is {Yes, No, Abstain, Absent}). Draw an er schema diagram for the above application. State clearly any assumptions you make.”
PLEASE: Write your first and last name clearly, and provide a code to be used for posting your grades on the web.
Reference: Ch. 3 in textbook.